That will work if the user hits the back key but if they hit the home button
not so much. I leave my app open but I think remember some thread that
mentioned the engine sends a message when the app is de-focused. Can't
remember what it was. I believe it was suspendStack and resumeStack
Ralph
Yeh - the back and menu keys trigger messages but not the home key. It
hadn¹t occurred to me to try suspendStack - I¹ll give that a whirl.
Thanks Ralph.
Terry...
On 19/01/2016 11:59 am, "use-livecode on behalf of Ralph DiMola"
On 1/18/2016 8:54 PM, Terry Judd wrote:
Yeh - the back and menu keys trigger messages but not the home key. It
hadn¹t occurred to me to try suspendStack - I¹ll give that a whirl.
I don't think any messages are sent at all when the Home key is pressed.
Ralph may be thinking of the "shutdown"
Thanks Jacquie - you’re right, suspendStack doesn’t seem to be supported
by either iOS or Android so no joy there. I wanted the app to quit when
the user navigated away from it because I have a routine that attempts to
sync files that have been saved but not uploaded each time the app starts
up.
On iOS the fact that a LC app routinely quits when the home button is clicked
can be a pain but in the case of the app I’m currently developing I actually
want this to occur. Anyway, I’m covered on iOS but how do I make the app quit
when the user leaves it on an android device, or is this not