I build a nativa app, which should work if connection is weak or completely gone. I used jasonelle to make my native app and now I’m testing what happens if I turn off the internet.
Scenario 1: app is open, connection is gone. I can fill out forms, input fields with static values, but dynamic list from database does not load, but I am still able to save my form. When I go back online, then data is uploadet to database.
Scenario 2: app is open, connection is gone. I repeat the same step as in scenario one, but I put the app in the background and do something else. Later I go online again, open the app from background and data is saved to database.
Scenario 3: app is open, connection is gone. I fill out my form but then I close the app completely. It’s NOT running in the background. When I open it again, it won’t open unless I go online, but finally data is not saved to database and changes are gone.
My conclusion: if you are online then you can open the app, and you are able to fill forms with static values if you lose connection and everything will be saved to database when you are online again and did not closed the app so far.
But if you are offline, you are not even able to open the app. And if you close the app when you are offline, then you lose every data which were not saved.
Is it possible to keep changes even if you close the app and when you are online you open the app again and it saves your changes?
I read some thread about this, but I’m not sure if I understand well.
There is this plugin: https://bubble.io/plugin/data-layer-1552810734309x983019165656809500
But it seems to me, I have to store my data on firebase, and connect with bubble. Documentaion is not clear for me, neither the test application for that.
“having an ‘offline’ application requires the use of ‘offline’ detection plugin and backup with certain plugins to access the memory of the ‘browser’.” @JohnMark Can you give a guidline how to manage this? What are the “certain plugins”?
My app will be used in constructions where engineers fill out forms in the app and upload pictures about the construction. It may happen there is no mobile conenction there, so the app should open without internet as well and if the close the app, data should be saved next time when they have connection again.
Thanks for any help and advice in advance.