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

App is not getting the location when app is in killed state

Open Muizz12 opened this issue 1 year ago • 3 comments

Your Environment

]

  • Platform: iOS or Android
  • React Native version (react-native -0.71.7"):
BackgroundGeolocation.ready({
        // Geolocation Config
        desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
        distanceFilter: 10,
        // Activity Recognition
        stopTimeout: 5,
        heartbeatInterval: 60,
        preventSuspend: true,
        // Application config
        debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.
        logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
        stopOnTerminate: false, // <-- Allow the background-service to continue tracking when user closes the app.
        startOnBoot: true, // <-- Auto start tracking when device is powered-up.
        // HTTP / SQLite config
        url: 'http://yourserver.com/locations',
        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: {
          // <-- Optional HTTP headers
          'X-FOO': 'bar',
        },
        params: {
          // <-- Optional HTTP params
          auth_token: 'maybe_your_server_authenticates_via_token_YES?',
        },
      });

Expected Behavior

App should get the location when app is closed

Actual Behavior

App is not the getting location when app is closed

Steps to Reproduce

1.Close the App an if you hear the bing sound then you are getting the location else you are not

Muizz12 avatar Feb 19 '24 10:02 Muizz12

Plugin version Platform: iOS or Android

You did not provide answer for (or deleted) required items in the issue template.

christocracy avatar Feb 19 '24 13:02 christocracy

Plugin version Platform: iOS or Android

You did not provide answer for (or deleted) required items in the issue template.

how would i get the access of background location when app is close ?? thanks for the response

Muizz12 avatar Feb 19 '24 13:02 Muizz12

Plugin version Platform: iOS or Android

You did not provide answer for (or deleted) required items in the issue template.

christocracy avatar Feb 19 '24 13:02 christocracy