jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

Geolocator - Detect GPS signal lost? #209

Closed mhirons closed 8 years ago

mhirons commented 8 years ago

With the Geolocator plugin, is there a way to detect that the GPS signal has been lost/gained?

jamesmontemagno commented 8 years ago

You would probably receive an error back via

event EventHandler<PositionErrorEventArgs> PositionError;
mhirons commented 8 years ago

That was my initial thought, as well. However, it doesn't appear to be raising the PositionError event. If I turn off location services, I get an error, but not if the GPS just loses position due to being in a building, etc. Not a big deal, I was more curious than actually needing this functionality.