Page 1 of 1

geolocation stops when the app does not have focus

Posted: Wed Oct 28, 2015 9:41 pm
by David Jones

Hi

I've implemented a GPS tracking app which works whilst the application is open and has focus. However, it does not continue to track if it is not the focus (ie phone locked, different app opened etc) despite the information detailed in the Appery GPS tutorial:

"Because this is a native app (with PhoneGap), the app will continue tracking the location even if in the background or with the phone screen locked."

The Geolocation Service is called through a javascript setinterval call every 10 seconds and consists of the service call and then within the success events invoking a rest service to add the data to an external database.

Am I missing a setting or something?

Thanks in advance.

David


geolocation stops when the app does not have focus

Posted: Thu Oct 29, 2015 9:46 am
by Serhii Kulibaba

Hello David,

Please look at this topic about run apps in the background: https://getsatisfaction.com/apperyio/...