transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.66k stars 426 forks source link

iOS: Location Service Stops Providing Updates in iOS Kill Mode #2136

Closed Rutvik-tbz closed 2 months ago

Rutvik-tbz commented 2 months ago

I want to get a location in kill mode (iOS) My application is already in a kill state, I activate location services (BackgroundGeolocation.start()) using silent notifications. The location service activates successfully and provides 2-3 locations, but then it stops giving updates. I even walked for more than 500 meters, but it still didn't give any location updates, I have granted all the necessary location and motion permissions, and the functionality fully works on Android.

Your Environment

Steps to Reproduce

  1. First, kill your iOS application.
  2. Send a silent push notification
  3. Start the location service upon receiving the notification.
  4. Go for a walk and check the service.

christocracy commented 2 months ago

See wiki “Debugging”. Learn to fetch the plug-in’s logs via “.emailLog”.

You should be able to test your problem in the iOS Simulator with location simulated with “Freeway Drive”.