Application restart when brought to the front

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
mvillion
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 107
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
Livecode Staff Member
Livecode Staff Member
Posts: 818
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: 107
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

byrones15
Posts: 6
Joined: Wed Apr 06, 2016 1:56 pm

Re: Application restart when brought to the front

Post by byrones15 » Mon Feb 11, 2019 8:07 pm

I haven't upgraded to v9. Was the "Enable Background Execution" feature implemented in the final release? Does it break anything?

Post Reply

Return to “iOS Deployment”