Hello experts,
I've got a mobile app that was generated on infrastructure 1 (cloud), published to Google Play and App Store.
The app automatically updated itself and pointed to infrastructure 2. Everything appears to be working except for the users' local data being missing (users' local data is not synced to the server). The local data re-appears after switching the DNS entry back to its original value.
What am I missing? How do I move a mobile app to another infrastructure and keep the local data of existing users?
Regards,
CezarF
This issue is an expected behavior according to OutSystems. Hope the findings below can help others who might be looking for a solution.
-cezarF
Thanks for sharing. I was a bit puzzled with this behavior, but explained like this it makes total sense.(I'm marking it as a solution since this issue will be looked for by others for sure)
Hi,
I am not sure what you mean with local data?
Afaik, the mobile local data should not vanish (you can check that with remote-debugging).There are some questions:
However, when you move from infrastructure, that data will be gone and you need to export/import the server-data in itself.Did you synchronize the users as well? Because that might be an issue as well.
Different infrastructure = different UserId..
Hi Joost,
Thank you.
The mobile app does not require users to log in hence userid is not the issue. It allows users to save settings and personal data locally (local storage) of which are not being synced to the server due to privacy concerns. The server data is migrated to the new infra as well including end-users.
I agree that the local data should not disappear. However, it looks like the mobile app creates a new local database (SQLLite) rather than using the existing one after applying the new DNS entry to resolve to the new infra. As to what causes this behavior is still unknown.