Offline Hybrid application sign out

2
Hi All, I noticed in our application when a user sign out of an offline application with “un-synchronized” objects, those objects (cached data) will be deleted or lost.  Is there anyway to prevent the cached data to be deleted? The idea is that a user will capture data offline but then sync his entries manually once online again. Suggestions may be to keep user logged in or prevent him from signing out altogether but we also want to keep the possibility for users to sign out.    
asked
2 answers
3

I have added a warning pop-up when a user logs out in our offline app. It informs the user that the unsynced data will be lost, and it provides them with the option to sync, logout (without syncing), or cancel.

answered
2

I think your best option is to enforce the data being synchronized before logging of. You could do this by creating a nanoflow with a Sync action that after this action redirects to a page with a log of button for example.

answered