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.63k stars 425 forks source link

headless mode is not working on iOS #1087

Closed salilgupta2510 closed 4 years ago

salilgupta2510 commented 4 years ago

Your Environment

Plugin version: 3.7.0 Platform: iOS OS version: 13+ Device manufacturer / model: iPhone 6S React Native version (react-native -v): 0.61.4 Plugin config

PASTE_YOUR_CODE_HERE

Expected Behavior

User should get events of geofence when the app is in the background or terminated

Actual Behavior

No events received when the app is in the background or terminated

Steps to Reproduce

1. 2. 3. 4.

Context

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ```
michalpechnet commented 4 years ago

Headless mode is Android feature only

salilgupta2510 commented 4 years ago

@michalpechnet What can be done if we want the events when the ios app is terminated or in background ?

michalpechnet commented 4 years ago

Honestly I never tried this library when app is terminated so I can't give you any advice. But for background usage there is no advanced settings needed. As far as I know geofences is not so accurate. Have you tried to move far from geofence (for example 1km or more)?

christocracy commented 4 years ago

@salilgupta2510 See the API docs Config.stopOnTerminate to learn about iOS behaviour when the app is terminated.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] commented 4 years ago

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.