Good day,
I am creating multiple apps with offline functionalities (collections).
Each time i am saving data into the collection and changing app (opening another app), the saved data of the previous app disappears.
Is there any solution to "save" on local device even if you are simultaneously using multiple apps?
The apps are to be used in environments where there are no internet connections - and at the end of the day, everything needs to be patched online.
Solved! Go to Solution.
That is the way collections are designed to work. They are local caches of data while the app is running. To save data when you close an app you need to store it somewhere. If you are offline the only choice is using SaveData when you close the app and LoadData when you open it again. The limitation on those is that they only work in the Mobile, IOS, or Android clients. For a Windows laptop or tablet there is no way to Save and Load Data when working offline.
SaveData, LoadData, and Collections are all specific to an individual app. I don't know of any way to share offline data between different apps on a device.
A possible 'solution' is to send data via the URL as a parameter. I've done this before but you are limited by the MAX length of the URL, which from memory is around 2000 chars.
If the data you want to share between apps is small, then this may work for you?
Maybe i did not explain correctly...i am not "sharing" any data between apps.
The thing is that when i close the app without patching (data still in collection), the data stored in the collection does not exist anymore...i lose them.
When i open the app again, i want to still see the collected data...
For example, i have:
APP1 - i store the data offline in the collection A
APP2 - i store the data offline in the collection B
when i switch from APP1 to APP2, collected data A disappears...
That is the way collections are designed to work. They are local caches of data while the app is running. To save data when you close an app you need to store it somewhere. If you are offline the only choice is using SaveData when you close the app and LoadData when you open it again. The limitation on those is that they only work in the Mobile, IOS, or Android clients. For a Windows laptop or tablet there is no way to Save and Load Data when working offline.
Indeed, by using LoadData when app starts, this solves the issue of disappearing collected data.
You also need to make sure you use SaveData before closing the app. Otherwise the LoadData won't get an accurate reload of the data.
User | Count |
---|---|
253 | |
122 | |
106 | |
54 | |
49 |