Re: Suspend in iOS, or when is a mobile app running?

2020-11-18 Thread hlowe--- via use-livecode
Test _ Sent from http://runtime-revolution.278305.n4.nabble.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Suspend in iOS, or when is a mobile app running?

2020-11-18 Thread J. Landman Gay via use-livecode
That's good to know. Now all we need is an Android equivalent. On 11/17/20 4:39 PM, Mark Smith wrote: And just a reminder that, under iOS, you’ll have to register to receive a “ UIApplicationWillResignActiveNotification” message, and then write a handler to respond to that (PS only register

Re: Suspend in iOS, or when is a mobile app running?

2020-11-18 Thread Graham Samuel via use-livecode
Thanks to all who replied on this topic - lots of this is new to me! So far, for me the big thing missing is how to **force** iOS to continue sending messages to the app in the background, or alternatively force iOS itself to ask the user the question when the app calls for location data for

Re: Suspend in iOS, or when is a mobile app running?

2020-11-17 Thread Mark Smith via use-livecode
And just a reminder that, under iOS, you’ll have to register to receive a “ UIApplicationWillResignActiveNotification” message, and then write a handler to respond to that (PS only register once in your stack script — I learned the hard way). It’s documented under mergNotify in the dictionary

Re: Suspend in iOS, or when is a mobile app running?

2020-11-17 Thread HENRY LOWE via use-livecode
On iOS use mergNotify as below. Works well for me. on openStack mergNotify "UIApplicationWillResignActiveNotification" mergNotify "UIApplicationDidBecomeActiveNotification" end openStack on UIApplicationWillResignActiveNotification pUserInfo // Your code before the app goes to background

Re: Suspend in iOS, or when is a mobile app running?

2020-11-17 Thread J. Landman Gay via use-livecode
Android has always acted like this and now that iOS apps run in the background like Android does, it behaves the same way. At least our problems are cross-platform now. An app will stay in RAM until the user specifically quits or until the OS needs the memory. When that happens, the OS wipes

Re: Suspend in iOS, or when is a mobile app running?

2020-11-17 Thread Håkan Liljegren via use-livecode
I’m not sure what you mean with ”suspend” on mobile. You only run one application at a time. If your app goes out due to a phone call or any other event it will normally quit your app and send a closeStack message and some more. If you want to create an application that doesn’t allow the screen