react-native-background-geolocation
react-native-background-geolocation copied to clipboard
Background location tracking should work when user is in phone call.
<!--
*****************************************************************
* WARNING: If you ignore this template, so too will your issue
*****************************************************************
-->
<!--
Provide a general summary of the issue in the Title above
-->
## Your Environment
* Plugin version: ^4.12.1
* Platform: Android
* OS version: 13
* Device manufacturer / model: Vivo V25 Pro
* React Native version (`react-native -v`): 0.70.6
* Plugin config
```javascript <!-- Syntax-highlighting: paste your code below -->
const stated = await BackgroundGeolocation.ready({
url: "hostname/api",
autoSync: true,
autoSyncThreshold: 5,
batchSync: true,
maxBatchSize: 50,
headers: {
AUTHENTICATION_TOKEN: "token"
},
params: {
'auth_id': props.userdata?.data?.id,
'auth_user_type': props.userdata?.user_type,
},
locationsOrderDirection: "DESC",
maxDaysToPersist: 14,
enableHeadless: true,
distanceFilter: 3,
startOnBoot: true,
stopOnTerminate: false,
backgroundPermissionRationale: {
title: "Allow {applicationName} to access this device's location even when closed or not in use.",
message: "This app collects location data to enable recording your trips to work and calculate distance-travelled.",
positiveAction: 'Change to "{backgroundPermissionOptionLabel}"',
negativeAction: 'Cancel'
}
}, (state) => {
console.log("- BackgroundGeolocation is configured and ready: ", state.enabled);
if (!state.enabled) {
BackgroundGeolocation.start(function () {
console.log("- Start success");
});
}
});
Expected Behavior
Background location tracking should work when user is in phone call.
Actual Behavior
we are having a issues in background location track when user receive a call it will auto turn off background tracking
Steps to Reproduce
Context
We are trying to access user background location all the time even when his on phone call
Debug logs
Logs
PASTE_YOUR_LOGS_HERE
The plug-in has no control over the operating system. That being said, I don’t have this problem.
I suggest you gather logs from the plug-in (see wiki “Debugging”. See api docs “Logger”) and observe what the plug-in was reporting in its logs during a phone call.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.