Application restart when brought to the front

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
mvillion
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 50
Joined: Sun Feb 24, 2013 12:29 pm

Application restart when brought to the front

Post by mvillion » Thu Oct 05, 2017 9:19 pm

Hi all
I have an iPad application and I have noticed that if I click the home button and then go back into the app, it has restarted from the beginning.

What am I missing here? I would have thought it would just carry on from where it left off.

Thanks
Matt

LiveCode_Panos
Posts: 304
Joined: Fri Feb 06, 2015 4:03 pm

Re: Application restart when brought to the front

Post by LiveCode_Panos » Thu Oct 05, 2017 9:28 pm

Hi Matt,

You have to use LiveCode 9.0 DP-7 or above to allow your app running in the background. In the standalone settings you have to check the "Enable Background Execution" (note this is an experimental feature)

If you develop in LC 8.1.x, you can still achieve that, but it involves "hacking" the plist file.

Best regards,
Panos
--

mvillion
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 50
Joined: Sun Feb 24, 2013 12:29 pm

Re: Application restart when brought to the front

Post by mvillion » Thu Oct 05, 2017 10:40 pm

Simples.

Thanks

Post Reply

Return to “iOS Deployment”