Page 1 of 1

Multitasking in iOS?

Posted: Fri Sep 16, 2011 10:54 am
by DRJ-UK
The multitasking feature in iOS is really useful but I have no success in trying to do this with a LiveCode App. Has anyone discovered a way to enable this within a LiveCode project?

It seems that trying to do this via trapping shutdownRequest or suspend requests has no effect. I think there may be a flag in Info.plist to trigger a "run in background" mode but currently there is no option available to access this via the LiveCode standalone settings.

Any thoughts or suggestions welcomed. Many thanks.

Dave

Re: Multitasking in iOS?

Posted: Fri Sep 16, 2011 2:54 pm
by Jellicle
Earlier versions of LC with iOS allowed this, but it was unsupported and buggy. I don't know if it's coming back. What do you need to do? I use "on shutdown" to trap for the user quitting my app and write out some data that helps me restore things when the app is opened again.

Gerry

Re: Multitasking in iOS?

Posted: Fri Sep 16, 2011 3:06 pm
by DRJ-UK
Gerry

Many thanks for the feedback and comment. Trapping the shutdown request and saving variables is very useful on a re-start process to keep data between launches.

But ... all I really wanted to do was to allow the user to multitask to another App and then, on return, continue where they left off without having to re-start and re-show the splash screen again. I guess this is part of the initialisation process on start-up.

However, there is an entry in the Info.plist of "Application does not run in background" set to "YES". I guess this will mitigate against the App doing just that for now!

Thanks again

Dave