transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.65k stars 425 forks source link

location tracking only works when the app is in the foreground, with no updates in the background #2191

Open Bharatkt opened 4 days ago

Bharatkt commented 4 days ago

Your Environment

Expected Behavior

The background location tracking feature was working as expected before this issue began.

Actual Behavior

Background location tracking is not functioning; only foreground location updates are being received.

Steps to Reproduce

  1. Verified that location permissions are correctly set 2.Confirmed no recent changes to the location-related code
  2. Restarted both the app and device, but the issue remains unresolved.

Context

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ```
christocracy commented 4 days ago

Realme RMX3501

See https://dontkillmyapp.com

disableMotionActivityUpdates: true,

Without the Motion API to determine when the device is moving, you are relying only upon a geofence around the last known position to determine when the device is moving.

Why are you disabling the Motion API? You'll have much better performance if you don't disable that.

Bharatkt commented 3 days ago

Hello @christocracy I have enable the Motion API, and Testing still not working, we can't change anything in code for BackgroundGeolocation file since last 2 month and it's working fine before, Is there any way to debug ?

christocracy commented 3 days ago

Logs. I need logs.