darron1217 / react-native-background-geolocation

Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
Apache License 2.0
33 stars 38 forks source link

Background Geolocation is not working on Android 11 #15

Open ShooterArk opened 3 years ago

ShooterArk commented 3 years ago

Your Environment

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 commented 3 years ago

The foreground service is not working on Android 11.

kofkgoing commented 3 years ago

The foreground service is not working on Android 11.

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

zoobibackups commented 3 years ago

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

kofkgoing commented 3 years ago

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

Check whether the notification is appeared on notification center

rafwell commented 2 years ago

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