Page 1 of 1

iOS in background

Posted: Tue Apr 16, 2013 11:32 pm
by DevBoyLars
Hi there,
isn't it possible for a LiveCode-App to stay running in background on iOS? Everytime I push the Home-Button on my iPhone the App will restart completely. That's bad.

Re: iOS in background

Posted: Tue Apr 16, 2013 11:47 pm
by Simon
Hi Lars,
The short answer is no... not LC but iOS, same with Android.
There is some stuff about running for an extra 10 minutes otherwise as soon as the memory is needed your app will get shut down.

There are some tricks to dealing with this like writing out a "preference" or "state" file that you write on closeStack and read on preOpenStack. Plenty of posts about that in these forums.

Simon

Re: iOS in background

Posted: Tue Apr 16, 2013 11:55 pm
by DevBoyLars
Hi Simon,
thank you for your fast answer. This is what I meant - the max-10min-thing :)

Is there a way to let the app open for this time in background?

Re: iOS in background

Posted: Wed Apr 17, 2013 12:01 am
by Simon
Its one of the http://mergext.com externals.
Couldn't see it right away.

Simon

Re: iOS in background

Posted: Wed Apr 17, 2013 12:13 am
by DevBoyLars
Perfect - thank you :)