Page 1 of 1
Keep the app running when the home button is pressed
Posted: Thu Dec 27, 2012 6:21 pm
by rleiman
Hi Everyone,
I noticed that pressing the Home button on the iPhone simulator causes the app to stop running.
Can you tell me how to make the app continue to run like most other Apple apps when the user presses the Home button?
Maybe there is a way to programmatically go to the home screen but leave the app running.
A sample stack would also be appreciated.
Thanks
Re: Keep the app running when the home button is pressed
Posted: Thu Dec 27, 2012 6:53 pm
by gpb01
Re: Keep the app running when the home button is pressed
Posted: Thu Dec 27, 2012 9:53 pm
by rleiman
Hi,
I tried to figure out the Apple link but I don't know anything about the c language.
So there is no way to make a simple alarm clock app with LiveCode?
I hope it can be done.

Re: Keep the app running when the home button is pressed
Posted: Thu Dec 27, 2012 10:29 pm
by Simon
Wait a sec rleiman,
This is the same question you asked in your post about :15 past the hour alarm.
You got the same answer.
Simon
Re: Keep the app running when the home button is pressed
Posted: Thu Dec 27, 2012 11:43 pm
by Dixie
Simon wrote:Wait a sec rleiman,
This is the same question you asked in your post about :15 past the hour alarm.
You got the same answer.
Simon
err.. no pun intended there, was there ?

rleiman... have a look at 'local' and/or 'push' notifications to solve your problem here...
Re: Keep the app running when the home button is pressed
Posted: Thu Dec 27, 2012 11:58 pm
by Simon
errr... wasn't supposed to be...
Was it funny?
This is where I meant:
http://forums.runrev.com/viewtopic.php?f=7&t=13579
Simon
Re: Keep the app running when the home button is pressed
Posted: Fri Dec 28, 2012 4:01 am
by rleiman
Hi,
I was able to get the 15 past the hour logic working but the app stopped running when I pressed the home button while the app was still running and the app did not beep when 15 past the hour was reached.
Sorry if I asked the same question in different ways. For me it's frustrating because there are so many alarm apps in the App Store and those apps still run when the user presses the home button. I hope RunRev has a sample alarm app stack I can look at and see how everyone is doing the alarm apps.
Re: Keep the app running when the home button is pressed
Posted: Sat Mar 02, 2013 11:14 am
by rleiman
That's funny.