react-native-background-geolocation: Location is not Tracked when killed by swiping it from app switcher - Android
Location is not Tracked when killed by swiping it from AppSwitcher in Android in some models(Lenovo, Huawei, MI). And there is no option to enable location services from inside app.
This was tested using your demo app from Google Play.
Your Environment
- Plugin version: latest
- Platform: Android
- OS version: 6.0 and up
- Device manufacturer / model: Lenovo, Huawei, Redmi
- React Native version (
react-native -v): Your demo app’s Play Store version - Plugin config
Expected Behavior
Location should be tracked even if the app is killed by user on swiping from app switcher. App should prompt to enable location or enable programatically in lenovo.
Actual Behavior
Location is not tracked after the app is killed by swiping it from app switcher. No option to enable location services from the app in lenovo.
Steps to Reproduce
- Start the app
- Kill it using AppSwitcher by swiping it.
Context
Track location even when killed.
Debug logs
No logs
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 32 (19 by maintainers)
And a successful field-test, including geofences.
I know of no possible way to keep my Lenovo A6000 from terminating the foreground-service when the main-activity is terminated. This is the only device I’ve ever come across where I’ve witnessed this issue. The reason I have a Lenovo A6000 is precisely because one of my customers reported this same issue about 2 years ago.