Multitasking in iOS?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
DRJ-UK
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 73
Joined: Tue Aug 23, 2011 2:50 pm
Contact:

Multitasking in iOS?

Post by DRJ-UK » Fri Sep 16, 2011 10:54 am

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
LiveCode: Versions 8.0, 8.1
Xcode: Version 7.3, 8.0
Mac OS X: 10.11.12 (macOS Sierra) on iMacs with 3.4 Intel Core i7 & 16GB Memory

Creating Apps for educational professionals, effective teaching and learning.

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Multitasking in iOS?

Post by Jellicle » Fri Sep 16, 2011 2:54 pm

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
14" MacBook Pro
Former LiveCode developer.
Now recovering.

DRJ-UK
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 73
Joined: Tue Aug 23, 2011 2:50 pm
Contact:

Re: Multitasking in iOS?

Post by DRJ-UK » Fri Sep 16, 2011 3:06 pm

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
LiveCode: Versions 8.0, 8.1
Xcode: Version 7.3, 8.0
Mac OS X: 10.11.12 (macOS Sierra) on iMacs with 3.4 Intel Core i7 & 16GB Memory

Creating Apps for educational professionals, effective teaching and learning.

Post Reply