jamesmontemagno / Xamarin.Plugins

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

GeoLocator StopListeningAsync doesn't stop #261

Closed RanaInside closed 8 years ago

RanaInside commented 8 years ago

Please take a moment to fill out the following (change to preview to check or place x in []):

This is a

Which plugin does this impact:

Version Number of Plugin: Last Nuget Stable Xam.Plugin.Geolocator.4.0.0-beta1

Device Tested On: iPhone 6, 6S (ios 8.2, ios9.x) Simulator Tested On: iPhoneSimulator 8.2

Expected Behavior

expecting success from method StopListeningAsync

Actual Behavior

returns false and doesn't stop listening

Steps to reproduce the Behavior

  1. no location set in info.plist for UIBackgroundModes
  2. StartListening on PageAppear method (returns true)
  3. StopListening on PageDisappear method (returns false)

Note: I am calling it on Main thread as await; pretty sure I have tried on background thread as well.

jamesmontemagno commented 8 years ago

This issue was moved to jamesmontemagno/GeolocatorPlugin#7