Internet Connectivity

Is there a way to determine the Internet connectivity on a device from the app?

We would like to hide a mapping component if there is no Internet… we would also like to switch between the in-built coordinate capture component and a Google map component depending on Internet availability.

Thanks.

Please see this topic for an answer on how to detect if the app is online or not.

TLDR: The only way to practically know if the app has a working internet connection is to try and do something that requires an internet connection and then seeing if it succeeds or not. The before mentioned post suggests a fairly neat way of doing just that