iOS in background

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

iOS in background

Post by DevBoyLars » Tue Apr 16, 2013 11:32 pm

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.

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

Re: iOS in background

Post by Simon » Tue Apr 16, 2013 11:47 pm

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: iOS in background

Post by DevBoyLars » Tue Apr 16, 2013 11:55 pm

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?

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

Re: iOS in background

Post by Simon » Wed Apr 17, 2013 12:01 am

Its one of the http://mergext.com externals.
Couldn't see it right away.

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: iOS in background

Post by DevBoyLars » Wed Apr 17, 2013 12:13 am

Perfect - thank you :)

Post Reply