Page 1 of 1

IOS app running in the background

Posted: Mon Feb 16, 2015 7:43 pm
by monadyne
I would like to have an app running on an iPhone which would send an alert at a designated interval of time. For example, if someone needed to take medication at a four hour interval, then the app would *beep* every four hours. This would require the LiveCode app to be running in the background. Is this possible?

If that's not possible, I could write a LiveCode application that ran on a dedicated computer (whose monitor would be in sleep mode to prevent burn-in.) The app would, at the specified interval, send a text to the user's iPhone or other device reminding the user to take the medication. Is this do-able?

Any assistance or ideas would be appreciated!

--Jack

Re: IOS app running in the background

Posted: Mon Feb 16, 2015 7:51 pm
by Klaus
Hi Jack,

LC does not support iOS apps running in the background!

But maybe you could create "local notifications"? Sounds like this is a job for them :D
Check "mobileCreateLocalNotification" in the dictionary, that will also work if your app is closed!


Best

Klaus

Re: IOS app running in the background

Posted: Mon Feb 16, 2015 9:45 pm
by monadyne
Thank you, Klaus. I'm looking at a tutorial on the subject right now. I appreciate your help.

--Jack

Re: IOS app running in the background

Posted: Mon Feb 16, 2015 10:15 pm
by Klaus
Okie Dokie :D

Be sure to come back when you get stuck!

Re: IOS app running in the background

Posted: Tue Feb 17, 2015 12:32 am
by monadyne
I've never programmed anything without getting stuck a million times, Klaus, so I ~will~ be back. Thanks again!

Re: IOS app running in the background

Posted: Tue Feb 17, 2015 6:03 am
by Thierry
Klaus wrote: LC does not support iOS apps running in the background!
Hallo Klaus,

FYOI, we are few here who managed to run LC-iOS apps in the background.
But as you said, no official support from runrev..

Regards,

Thierry

Re: IOS app running in the background

Posted: Tue Feb 17, 2015 6:52 am
by Simon
Hi regex Master,
Are you saying that you can run an alarm clock full-time (not just mergex 10 min) in an iOS app?
Is it that plist trick?

Simon