Data is lost once user logged out the native application
0
Hello, when creating an item in a native mobile app, the data isn't synced, Before signing out, the data is displayed, but after signing out and logging back in, the un-synced data is lost. In my use case, users create multiple items from various locations. They log out of the application during their travel between places. Upon reaching their destination and logging back in, the previously created data is no longer available.
asked
Venkatajalapathy P
4 answers
0
Hi,
when you are adding your new item used nanaflow , in the nanoflow write your logic and at the end used synchronised object activity inside nanaflow , then your data will still available after signing out.
Hope you like the answer.
answered
Mohammad Saqib
0
Synchronised object is used for offline applications.
answered
Mohammad Saqib
0
It will work , please try
answered
Mohammad Saqib
0
All unsynced data is destroyed when a user logs out. You have to be very aware of this and provide the user with feedback about the status of their data.
Some strategies to mitigate the loss of data include:
check for a connection and synchronise before the sign out. Do not sign out without syncing first.
provide a message / notification in the UI reminding the user to sync.
store data in the device's local storage (not recommended for obvious security reasons).