You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BackgroundGeolocation.ready({enableHeadless: true,desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,// Android Call api after certain perioddistanceFilter: 0,locationUpdateInterval: 1*60*1000,// 5 minutes stopTimeout: 5,locationAuthorizationRequest: 'Always',backgroundPermissionRationale: {message:
'App provides address verification for banking. We use background location access to collect geotags, ensuring accurate address verification',title: `Allow App to access this device's location.`,positiveAction: 'Change to "{backgroundPermissionOptionLabel}"',negativeAction: 'Cancel',},// iOS notifications from taskbarshowsBackgroundLocationIndicator: false,// physical activity permission disbaledisableMotionActivityUpdates: true,// Sounds / Notificationdebug: false,// LogslogLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,// Android options for get location on BGstopOnTerminate: false,startOnBoot: true,// // HTTP / SQLite config// url: '<ENV_URL>/user/location',// batchSync: false, // <-- [Default: false] Set true to sync locations to server in a single HTTP request.// autoSync: true, // <-- [Default: true] Set true to sync each location to server as it arrives.// headers: {// Authorization: `Bearer ${token}`,// 'Content-Type': 'application/json',// },// Filter out old timestamps// maxRecordsToPersist: 10, // Limit the number of records to keep// autoSyncThreshold: 1, // Sync every location}).then(state=>{BackgroundGeolocation.onLocation(asynclocation=>{awaitsendLocationToServer(location);console.warn(location);});BackgroundGeolocation.start();});
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
Verified that location permissions are correctly set
2.Confirmed no recent changes to the location-related code
Restarted both the app and device, but the issue remains unresolved.
Context
Debug logs
Logs
PASTE_YOUR_LOGS_HERE
The text was updated successfully, but these errors were encountered:
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.
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 ?
Your Environment
react-native -v
): 0.72.2Expected 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
2.Confirmed no recent changes to the location-related code
Context
Debug logs
Logs
The text was updated successfully, but these errors were encountered: