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

Background location tracking should work when user is in phone call.

Open chintanBeladiya opened this issue 2 years ago • 3 comments

<!--
*****************************************************************
* 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

chintanBeladiya avatar Jun 14 '23 13:06 chintanBeladiya

The plug-in has no control over the operating system. That being said, I don’t have this problem.

christocracy avatar Jun 14 '23 13:06 christocracy

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.

christocracy avatar Jun 14 '23 13:06 christocracy

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 21 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 04 '24 01:06 github-actions[bot]