Keep the app running when the home button is pressed

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
rleiman
Posts: 56
Joined: Fri Dec 14, 2012 11:28 am
Contact:

Keep the app running when the home button is pressed

Post by rleiman » Thu Dec 27, 2012 6:21 pm

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. :D

Thanks

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: Keep the app running when the home button is pressed

Post by gpb01 » Thu Dec 27, 2012 6:53 pm

Please, read here : http://forums.runrev.com/viewtopic.php? ... 579#p65438 and also here : http://forums.runrev.com/viewtopic.php? ... 411#p64445.

More important ... READ CAREFULLY here : http://developer.apple.com/library/ios/ ... sFlow.html

This should clarify the real situation on iOS :)

Guglielmo

rleiman
Posts: 56
Joined: Fri Dec 14, 2012 11:28 am
Contact:

Re: Keep the app running when the home button is pressed

Post by rleiman » Thu Dec 27, 2012 9:53 pm

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. :?

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

Re: Keep the app running when the home button is pressed

Post by Simon » Thu Dec 27, 2012 10:29 pm

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

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Keep the app running when the home button is pressed

Post by Dixie » Thu Dec 27, 2012 11:43 pm

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 ? :D
rleiman... have a look at 'local' and/or 'push' notifications to solve your problem here...

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

Re: Keep the app running when the home button is pressed

Post by Simon » Thu Dec 27, 2012 11:58 pm

errr... wasn't supposed to be...
Was it funny? :D

This is where I meant: http://forums.runrev.com/viewtopic.php?f=7&t=13579

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

rleiman
Posts: 56
Joined: Fri Dec 14, 2012 11:28 am
Contact:

Re: Keep the app running when the home button is pressed

Post by rleiman » Fri Dec 28, 2012 4:01 am

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.

rleiman
Posts: 56
Joined: Fri Dec 14, 2012 11:28 am
Contact:

Re: Keep the app running when the home button is pressed

Post by rleiman » Sat Mar 02, 2013 11:14 am

:lol:

That's funny.

Post Reply