Offline local data lost on closing native app

0
How to set up a nanoflow as background service to wind up things when user closes the app. Some data is generated in app and stored offline in local database. When users close the app or put it in background, I want to synchronize all the data so its safe for next time. How to do that without any user action to trigger synchronize (sync button or nanoflow on button click etc) Currently I can sync data with a button (user action), but unable to do it automatically at specified intervals or just before app is closed. 
asked
2 answers
0

Hi,

In Project » Settings » Runtime  you can call a Microflow before shutdown which can commit the data locally.

answered
0

You can use the App Events widget from Native Mobile resources to run a microflow at specific intervals or on specific app events.

answered