Page 1 of 1

Keep script running

Posted: Sat Sep 01, 2012 7:24 pm
by KennyR
Hello everyone,
I am about to wrap up a modest application but have a question first. Is there a way to keep a certain script "alive"/running when a phone call or text message is viewed on the iPhone? Thanks to Dixie, I am able to save all my variables and card positions, but I have a timer on one card that I would like to keep running when a phone call interrupts the users session. Any thoughts?

Re: Keep script running

Posted: Wed Sep 05, 2012 12:20 pm
by Mark
Hi,

The same script that re-loads your variables and card positions can be used to restart your continuously running script. Save the milliseconds to your data file when the app closes and read the milliseconds from the data file and compare this value with the current milliseconds to find out how long your script has not been running.

Kind regards,

Mark