react-native-background-geolocation
react-native-background-geolocation copied to clipboard
IOS says app is getting location in status bar even if not scheduled
Your Environment
- Plugin version:
- Platform: iOS
- OS version:17.3.1
- Device manufacturer / model: iPhone 14
- React Native version (
react-native -v): 0.71.16 - Plugin config
Expected Behavior
IOS should not display airplane icon in status bar
Actual Behavior
IOS displaying airplane icon in status bar and saying my app it using location even when i have not set scheduled time of today when i use freeway drive
Steps to Reproduce
- Set any other schedule date
- Start freeway drive
- you will see airplane icon in status bar
Context
Plugin version: ??
Config ??
Are you observing the logs in XCode?
Are you configuring the plug-in with debug: true and verbose logging so you can see and hear what the plug-in is doing?
see wiki “Debugging”
@christocracy Apologies for the delayed response. Currently, I'm using the latest version of the plug-in, which is 4.15.2. Upon checking the plug-in in debug mode, I noticed that when I use freeway drive and there's no scheduled time, it gives me a notification saying "Evaluate Schedule in SLC event" with an airplane icon above it. Is it possible to hide that airplane icon when tracking is not scheduled?
"Evaluate Schedule in SLC event" with an airplane icon above it
It's a "location arrow" icon. This is expected when using a Config.schedule. The only way the plugin can periodically evalute the schedule is by subscribing to the iOS "SIgnificant Location Changes" API ("SLC"), where a location is recorded about every 1000 meters.
iOS does not have the ability to subscribe to a "Timer" to automatically launch your app in the background (even if terminated) to launch a scheduled tracking period. The iOS "SLC" API does.
@christocracy heyy sir, can you please have a look into the issue i posted recently, just wanna know if it has any solution or not.
If you don’t want this behaviour, then don’t use a Config.schedule on iOS.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.