Bakground Location Fetching not working
See original GitHub issueBackground 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:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Many others are having the same problem as well. This really sucks.
Have you tried any other provider than DISTANCE_FILTER? Try new RAW_PROVIDER, so we can isolate it to specific provider or plugin issue.