react-native-background-geolocation
react-native-background-geolocation copied to clipboard
Background Geolocation is not working on Android 11
Your Environment
- Plugin version: 0.6.6
- Platform: Android
- OS version: 11
- Device manufacturer and model: Samsung A71
- Running in Simulator: Yes
- React Native version: 0.63.3
- Plugin configuration options:
- Link to your project:
Context
I have successfully integrate the library and its working on emulator but when I run the application on real device it does not work in the background.
Expected Behavior
Shows LOCATION marker in the Status bar and fetch location.
Actual Behavior
Does not shows LOCATION marker in the status bar.
Possible Fix
Steps to Reproduce
- Integrate the library and configure it as mentioned in documentations.
- Now run the app on real device. Once the app is running, switch to background.
Context
Background tracking.
Debug logs
The foreground service is not working on Android 11.
The foreground service is not working on Android 11.
I guess you have to start service on foreground, before entering background
Still not working, forground service is running but background location not working
Still not working, forground service is running but background location not working
Check whether the notification is appeared on notification center
I can confirm that's working fine in Android 11. Try see adb logcat to logs.