How to make a mobile app stay alive in the background?

Mark Waddingham mark at livecode.com
Mon Apr 27 02:48:36 EDT 2020


On 2020-04-27 07:25, J. Landman Gay via use-livecode wrote:
> On 4/26/20 4:43 PM, Graham Samuel via use-livecode wrote:
>> I notice in the Standalone Settings for iOS in LC 9.5.1, a button 
>> ‘Background Execution’. If I click it, I get a warning that I don’t 
>> really understand which suggests that LC doesn’t officially support 
>> the feature. I’m not even sure if this feature is what I need.
> 
> Basically you have to save the user state repeatedly whenever anything
> significant changes, in case the app goes dormant.

You actually need to do this regardless of having suspend/resume 
messages as there's no guarantee that (1) you will get them and (2) you 
will be able to execute them long enough to save all current state.

Both mergBgTask and mergNotify provide features to enable managing the 
background task feature of iOS, and the suspend/resume notifications 
though.

Warmest Regards

Mark.

-- 
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps



More information about the use-livecode mailing list