Tasks & Timers

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
mtimmerm
Posts: 14
Joined: Tue Nov 15, 2011 12:56 pm

Tasks & Timers

Post by mtimmerm » 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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10309
Joined: Wed May 06, 2009 2:28 pm

Re: Tasks & Timers

Post by dunbarx » Sun Jan 15, 2012 7:33 pm

hi.

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

Craig Newman

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Tasks & Timers

Post by sturgis » Sun Jan 15, 2012 8:04 pm

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?

mtimmerm
Posts: 14
Joined: Tue Nov 15, 2011 12:56 pm

Re: Tasks & Timers

Post by mtimmerm » Thu Jan 19, 2012 8:28 pm

Still it is not clear to me if it is contunue running in the background? And indeed also I am curious about "Push" notifications.

mtimmerm
Posts: 14
Joined: Tue Nov 15, 2011 12:56 pm

Re: Tasks & Timers

Post by mtimmerm » Mon Feb 06, 2012 12:29 pm

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 :(

Post Reply