react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

Background Geolocation is not working on Android 11

Open ShooterArk opened this issue 3 years ago • 5 comments

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

  1. Integrate the library and configure it as mentioned in documentations.
  2. Now run the app on real device. Once the app is running, switch to background.

Context

Background tracking.

Debug logs

ShooterArk avatar Jun 09 '21 02:06 ShooterArk

The foreground service is not working on Android 11.

ShooterArk avatar Jun 10 '21 13:06 ShooterArk

The foreground service is not working on Android 11.

I guess you have to start service on foreground, before entering background

kofkgoing avatar Jul 14 '21 05:07 kofkgoing

Still not working, forground service is running but background location not working

zoobibackups avatar Sep 07 '21 12:09 zoobibackups

Still not working, forground service is running but background location not working

Check whether the notification is appeared on notification center

kofkgoing avatar Sep 07 '21 12:09 kofkgoing

I can confirm that's working fine in Android 11. Try see adb logcat to logs.

rafwell avatar Nov 17 '21 12:11 rafwell