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
Plugin version: 4.16.3
Platform: iOS
OS version: 17.6.1
Device manufacturer / model: iPhone 15
React Native version (react-native -v): 0.74.1
Plugin config
BackgroundGeolocation.ready({
stationaryRadius: 0,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
distanceFilter: 0,
stopTimeout: 5,
debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
stopOnTerminate: false, // <-- Allow the background-service to continue tracking when user closes the app.
startOnBoot: true, // <-- Auto start tracking when device is powered-up.
stopOnStationary: false,
allowIdenticalLocations: true,
locationUpdateInterval: 60 * 1000,
fastestLocationUpdateInterval: 60 * 1000,
showsBackgroundLocationIndicator: true,
heartbeatInterval: 60, // 1 min Interval
preventSuspend: true, // iOS need to work heartbeatInterval
autoSync: false, // Disable automatic syncing (this doesn't directly prevent permission requests but is a common recommendation)
// Android & iOS location-services will never turn off
disableStopDetection: true,
pausesLocationUpdatesAutomatically: false, // Need for iOS to set location-services will never turn off along with disableStopDetection
})
Steps to Reproduce
First, kill your iOS application.
Send a silent push notification
Start the location service upon receiving the notification.
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
react-native -v
): 0.74.1Plugin config
Steps to Reproduce