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.

Bakground Location Fetching not working

See original GitHub issue

Background location fetching ends after 1 or 2 minutes. It does not turn the GPs on, or the tracking unless i go to the app screen again and again. It showing the ‘Exit message’ toas in 1- 2 minutes.

Your Environment

  • Plugin version: 2.2.5

  • Platform: Android

  • OS version: 6.01

  • Device manufacturer and model: XIOMI Redmi Note 3

  • Cordova version (cordova -v): 7.0.1

  • Cordova platform version (cordova platform ls):Installed platforms: android 6.2.3 ios 4.4.0

  • Plugin configuration options:

desiredAccuracy: 0, stationaryRadius: 1, distanceFilter: 1, debug: true, interval: 10000 , stopOnTerminate: false,

  • Link to your project: It is in development mode

Context

Expected Behavior

It should continue work in the background, even if i turned off the screen, until i stops background tracking.

Actual Behavior

It shows the background tracking info even though the app is in foreground. It continue to show the toast messages after 1 minute till i exit from the app screen. After that most of the time it says stationary exit. The GPS signal is no longer in the navbar of my device.

Possible Fix

Steps to Reproduce

Context

Debug logs

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
arapocketcommented, Aug 27, 2017

Many others are having the same problem as well. This really sucks.

0reactions
mauron85commented, Dec 1, 2017

Have you tried any other provider than DISTANCE_FILTER? Try new RAW_PROVIDER, so we can isolate it to specific provider or plugin issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Background location is not working · Issue #1153 - GitHub
1.start the tracking. 2.put the app in background. 3.open the app from background and check the tracking path. 4.
Read more >
How to Reliably Fetch Location in Background on Newest ...
In this article, we'll take a look at the changes of rules for accessing background location in each version of the system, and...
Read more >
Background location tracking not working - Expo - Android
I currently have it working for app in background but it stops tracking when the device is asleep. I am using Expo for...
Read more >
Continuous location in background … | Apple Developer Forums
I am writing an iOS app that requires continuous location updates while being in the background. I am using CLLocationManager and here is...
Read more >
Requesting access to location in the background
All apps that access location in the background will need to be approved or app updates may be blocked and your app may...
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