Page 1 of 1

Detecting when an iOS app quits

Posted: Fri Mar 25, 2011 12:35 am
by Jellicle
Can we detect when our apps have been closed by users? Closestack, suspend and shutdown don't seem to work.

Gerry

Re: Detecting when an iOS app quits

Posted: Fri Mar 25, 2011 12:40 am
by BvG
Don't really know, but maybe suspend or suspendStack works?

I'd consider this a bug, probably?

Re: Detecting when an iOS app quits

Posted: Fri Mar 25, 2011 12:42 am
by bn
Hi Gerry,

I use

Code: Select all

on shutDown
-- code here
end shutDown
to save data from a data stack in

http://forums.runrev.com/phpBB2/viewtop ... =49&t=6834

It does save the stack.

Kind regards

Bernd

Re: Detecting when an iOS app quits

Posted: Fri Mar 25, 2011 12:55 am
by Jellicle
That is so strange. I wrote some code to read a file at openstack and write it at shutdown, and it never seemed to write it. Just tried again, and it did. I guess I need some sleep, or LiveCode needs a rest, or something :)

Many thanks :)

Re: Detecting when an iOS app quits

Posted: Fri Mar 25, 2011 1:03 am
by bn
Hi Gerry,

In case you run into trouble with a save on shutdown:

make shure it is in the stack script if your stack has more than one card and beware that iOS is case sensitive for file names.

bit me before.

Kind regards

Bernd