question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

background tracking not working

See original GitHub issue

i’m trying to use the background tracking. I don’t have any errors, but the javascript callback is not called (probably this is normale when app is in background) but also the http post request is not called.

i’ve configured it like this:

window.backgroundGeolocation.configure(
   watchPositionSuccessCallback,
   watchPositionErrorCallback,
   {
       desiredAccuracy: 0,
       interval: 10,
       activityType: 'AutomotiveNavigation',

       notificationTitle: 'My App',
       notificationText: 'My Text',

       url: api_domain+'/orders/'+order_uuid+'/route',
       httpHeaders: {
           'Authorization': sessionStorage.getItem('http_auth')
       },

       pauseLocationUpdates: false,
   }
);
$scope.startBackgroundGeolocation();

at least I should receive an HTTP POST on my server, but this doesn’t happen.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
guestispcommented, Jan 18, 2017

Yes, this plugin is unusable.

0reactions
mauron85commented, Nov 21, 2017

Notice: this issue has been closed because it has been reported for branch 2.x or later. It could be already fixed in v3 or is not relevant anymore. You may reopen this issue if it has been closed in error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android background GPS tracking not working? - WooDelivery
Android background GPS tracking not working? · Step 1 – Enable background location tracking · Step 2 – Disable battery optimization, and turn...
Read more >
Background tracking is not working on (all) real devices #115
Background tracking in not send any data to the url when app is running in background, get killed, or when device reboot. The...
Read more >
reactjs - Background location tracking not working in apk but ...
Actually I'm developing an app in react native which requires background location access it's working fine in debug mode but ...
Read more >
App is not Tracking Properly when Running in the Background
Go to Settings > General > Background App Refresh. Turn this option ON and make sure the Navionics app has access when running...
Read more >
Background tracking not updating location when app is ...
I have an app which frequently need to update the location of the user every 15 minutes. App works fine when it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found