NativeScript / nativescript-geolocation

Geolocation plugin to use for getting current location, monitor movement, etc
Apache License 2.0
139 stars 76 forks source link

watchLocation() #276

Open Amira-tageldin opened 3 years ago

Amira-tageldin commented 3 years ago

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 commented 3 years ago

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

dlcole commented 3 years ago

Is this on iOS or Android?

Amira-tageldin commented 3 years ago

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

dlcole commented 3 years ago

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?