jamesmontemagno / GeolocatorPlugin

Geolocation plugin for Xamarin and Windows
MIT License
294 stars 158 forks source link

When choosing a provider, does the plugin check for internet access on the wifi or just connection? #321

Open J-Hardy opened 4 years ago

J-Hardy commented 4 years ago

Just wondering if the plugin checks for an active internet connection on the wifi or just a connection when choosing a provider to grab the user's location. This problem came about from using the plugin on a phone in a car that has built in wifi but no internet access.

If the plugin doesn't check is there is a way to force the geolocator to only use GPS and ignore the phone network data/WiFi. I've seen the closed post issue 230, but didn't fully understand if that was asking the same question. Thanks in advance.

TheWatchfulOne commented 1 year ago

The plugin itself just interfaces with Apple's and Google's location API and does not check for an Internet. I'm not sure about Android, but on Apple devices, the system decides under the hood which location technology it will use (GPS, WiFi, cel tower triangulation, etc.) There is no outward facing API that allows input into which location technology to use.