IOS app running in the background

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
monadyne
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10
Joined: Sun Jul 02, 2006 7:07 pm

IOS app running in the background

Post by monadyne » Mon Feb 16, 2015 7:43 pm

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

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: IOS app running in the background

Post by Klaus » Mon Feb 16, 2015 7:51 pm

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

monadyne
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10
Joined: Sun Jul 02, 2006 7:07 pm

Re: IOS app running in the background

Post by monadyne » Mon Feb 16, 2015 9:45 pm

Thank you, Klaus. I'm looking at a tutorial on the subject right now. I appreciate your help.

--Jack

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: IOS app running in the background

Post by Klaus » Mon Feb 16, 2015 10:15 pm

Okie Dokie :D

Be sure to come back when you get stuck!

monadyne
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10
Joined: Sun Jul 02, 2006 7:07 pm

Re: IOS app running in the background

Post by monadyne » Tue Feb 17, 2015 12:32 am

I've never programmed anything without getting stuck a million times, Klaus, so I ~will~ be back. Thanks again!

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: IOS app running in the background

Post by Thierry » Tue Feb 17, 2015 6:03 am

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
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: IOS app running in the background

Post by Simon » Tue Feb 17, 2015 6:52 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply