You must Login before you can answer or comment on any questions.
So I have tried every way possible to get my iphone gps tracker to run in the background for more than 600 seconds.
The reason it does this is that apple designed it to do this unless you set up your application to be either VOIP, audio or a location service. I added the following to the info.plist:
<key>UIBackgroundModes</key> <array> <string>location</string> </array>But I still cant get the background service to not timeout.
Has any one worked out how to track a users location for more than 10 minutes in the background yet?
Any help would be amazing,
Hi Alex, you need to use the iOS Background Service to keep the app alive. If you just create an interval timer in the backgroundservice .js file it should keep your app alive past the 10 minute mark.
I'm working on a sample on how to do this, just isn't ready to share yet. But, all it really will do is show an example of the above.
I figured this out about 10 minutes after posting! Sods law
I originally tried putting the code in the info.plist at the root of my project! Actually to get this working you must have a code block in your tiapp.xml file under the iphone node!
<backgroundModes> <mode>location</mode> </backgroundModes>Hope that helps some one else out ;)
This question has been locked and cannot accept new answers.