Tasks & Timers
Posted: Sat Jan 14, 2012 9:10 pm
Hi,
I am writing my first iOS app for the iPhone using LiveCode. It is a very simple app that get's data from a website based on the gps location. If the GPS location hits data that I retrieved from the web server I would like to inform the user by a message.
But I am running into trouble.
I would like to retrieve every 10 (user adjustable) minutes the latest data of a web server to my app. How can I setup a timer that executes the function every 10 minutes in the background?
Another question I have about background tasks. I would like to update the gps location in the background. In Xcode they do something about a setting with the BackgroundMode key.
How can I set this up that the application receives and event when the location is changed.
I am not able to find any documentation about background running? Where can I find some documentation about available functions?
Thanks
Marcel
I am writing my first iOS app for the iPhone using LiveCode. It is a very simple app that get's data from a website based on the gps location. If the GPS location hits data that I retrieved from the web server I would like to inform the user by a message.
But I am running into trouble.
I would like to retrieve every 10 (user adjustable) minutes the latest data of a web server to my app. How can I setup a timer that executes the function every 10 minutes in the background?
Another question I have about background tasks. I would like to update the gps location in the background. In Xcode they do something about a setting with the BackgroundMode key.
How can I set this up that the application receives and event when the location is changed.
I am not able to find any documentation about background running? Where can I find some documentation about available functions?
Thanks
Marcel