nativescript-geolocation icon indicating copy to clipboard operation
nativescript-geolocation copied to clipboard

watchLocation()

Open Amira-tageldin opened this issue 3 years ago • 4 comments

Found that when use the plugin background service to track gps is not capturing gps if device is idle and inside vehicle.. like plugin cannot detect vehicle movement..any idea?

Amira-tageldin avatar Apr 19 '21 12:04 Amira-tageldin

To replicate .. 1- leave device and app is opening to capture gps inside vehicle. 2- vehicle not moving for more than 30min. 3- vehicle start to move :) No gps will be collected

Amira-tageldin avatar Apr 19 '21 12:04 Amira-tageldin

Is this on iOS or Android?

dlcole avatar Apr 24 '21 18:04 dlcole

This is android 10...the issue that the plugin not able to detect vehicle movements after a 30+min of inactivity

Amira-tageldin avatar Apr 25 '21 10:04 Amira-tageldin

I'll try this out myself and see if I can recreate the problem. Earlier today I noticed that my android device will disconnect after about 10 minutes of inactivity, but then reconnect once I start moving again. Do you, by chance, have any firebase disconnect calls?

dlcole avatar Apr 25 '21 23:04 dlcole