Nitesh
Nitesh

Reputation: 2337

Get GeoLocation in Xamarin.Forms when not conencted to Internet

I am using Xam.Plugin.GeoLocator from here to get the geo location of a user in Xamarin.Forms project. This is working great when the device is connected to Internet. I need to capture the Lat/Long coordinates of the user when the device is not connected to Internet.

How can this be achieved?

Upvotes: 0

Views: 1052

Answers (1)

Nitesh
Nitesh

Reputation: 2337

As per comments above, The GeoLocator plugin returns what the OS supplies, so yes, if you have no cellular/wifi but the device does have a GPS connection, then that is what is returned. i.e. If you request a high/fine accuracy than the GPS might be used instead of Google's location services using the cellular or wifi connections even if they are available. Same basically for iOS, but using Apple location services.

Upvotes: 1

Related Questions