Open Rajam0310 opened 1 week ago
even in stationery position.
Read the wiki “Philosophy of Operation”. This plugin does not record location while the device is in the stationary state (that would be pointless).
if you want periodic location updates, implement background-fetch (already imported as a dependency) and call .getCurrentPosition in your fetch callback. See its readme.
We have to track the realtime location of user even they are in stationary position and mobile app running in background or fore ground or in sleep ,so we have issue in sleep.Our query is getCurrentPosition will satisfy all the requirement?
Have you read the API docs for .getCurrentPosition? Why don’t you experiment and see?
Already tried. Not working in android 11 and above, actually its stop tracking after 15 seconds while sleep mode
Within a background-fetch handler?
if you want periodic location updates, implement background-fetch (already imported as a dependency) and call .getCurrentPosition in your fetch callback. See its readme.
okay, thanks, will look into it and get back to you.
Your Environment
cordova -v
): 10.1.2cordova platform ls
): Installed platforms: android 10.1.2 ios 6.2.0 Available platforms: browser electronPlugin config provided to
#ready
:Expected Behavior
Track the GPS Location when mobile is sleep mode even in stationery position
Actual Behavior
Its Not tracking after 15 seconds in sleep mode
Steps to Reproduce
1. 2. 3. 4.
Context
App which is running in foreground or background or sleep we have to track the live location even in stationery position.
Debug logs
Logs
``` PASTE_YOUR_LOGS_HERE ```