Page 1 of 1

Tasks & Timers

Posted: Sat Jan 14, 2012 9:10 pm
by mtimmerm
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

Re: Tasks & Timers

Posted: Sun Jan 15, 2012 7:33 pm
by dunbarx
hi.

Read the dictionary entry on the "send" command. The variant, "send in time" is just what you need.

Craig Newman

Re: Tasks & Timers

Posted: Sun Jan 15, 2012 8:04 pm
by sturgis
Edit: Not sure "push" is the right term here either.. (So much to learn, so little time!)

I'm curious about this too. The send in time to gather info makes lots of sense. On IOS though, does it continue to execute in the background, and if so, are "push" notifications possible with runrev so that it can stand up and say hello?

Re: Tasks & Timers

Posted: Thu Jan 19, 2012 8:28 pm
by mtimmerm
Still it is not clear to me if it is contunue running in the background? And indeed also I am curious about "Push" notifications.

Re: Tasks & Timers

Posted: Mon Feb 06, 2012 12:29 pm
by mtimmerm
Anyone that could help me out here? It looks like that I bought the wrong development tool if this is not possible. I cannot find anything on this side or documentation how to solve this. Also from support I get no real answer. I have a deadline for this tool and I am running out of time :(