David Jones
Posts: 0
Joined: Wed May 06, 2015 7:46 pm

geolocation stops when the app does not have focus

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

geolocation stops when the app does not have focus

Hello David,

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

Return to “Issues”