Page 1 of 1

iOS 7 - script stops when device asleep

Posted: Thu Sep 19, 2013 3:25 pm
by kellymdeters
I have a reading time tracker app - it can count up as people read or count down and sound an alarm when their pre-set time expires. Worked great on iOS 6...but last night my son updated his iPad to iOS7 and he noticed that the alarm never went off. (two nights ago when he was iOS6 it worked fine...last night on iOS7 didn't go off)

the script is supposed to send a command "StartTimer" to a button every 1 sec and in that script it counts "down" by 1 second. If the count is 0:0:0 after it counts down by 1 then it stops the script and sounds an alarm.

I played with it this morning on his iPad and found that on iOS7 this works up to 15 seconds of the device being alseep. Once the device is asleep for more than 15 seconds when time is supposed to run out it never sounds the beep.

How can I keep this script running for longer than 15 sec while the device is asleep? I'm sure this has to do with the changes iOS made to how things run in the background!

Would it be better to set a local notification to go off at the time when time should run out and use the device itself to keep track of the time instead of the livecode script keeping track of the time? if so, how can I make that happen? i tried doing it before I implemented this way and never got it to work

THANKS!

Re: iOS 7 - script stops when device asleep

Posted: Thu Sep 19, 2013 3:29 pm
by Klaus
Hi Kelly,

please keep in mind that LC 6.1x is not yet officially iOS 7 ready!
The team is working on an update, which should be released in the next time!


Best

Klaus

Re: iOS 7 - script stops when device asleep

Posted: Thu Sep 19, 2013 3:44 pm
by kellymdeters
Thanks!

In the meantime, I think I figured out my own question and figured out how to do local notification based off the time they start it rather than sound the alarm when time runs out according to the on-going script. That will help in the meantime! :)

Re: iOS 7 - script stops when device asleep

Posted: Thu Sep 19, 2013 4:36 pm
by Klaus
Okie Dokie :D