Android browser says I'm a dino, which i understand, so I made an .apk, which at least opens the app but doesnt list the data. I thought the first time online it would store data locally so it could handle offline CRUD ..please advice...thanks
Android browser says I'm a dino, which i understand, so I made an .apk, which at least opens the app but doesnt list the data. I thought the first time online it would store data locally so it could handle offline CRUD ..please advice...thanks
Hello -
You will need to store data in SQLite and populate list elements with JavaScript in this case.
Hope that the described approach will help you here - http://devcenter.appery.io/tutorials/...
Thanks for the response
I followed this tutorial: http://devcenter.appery.io/tutorials/...
"When the device is in offline mode, the list service cannot be used."
I assumed there would be an offline fallback to a SQLLite db but there wasnt
Is the link you mention a more updated one ?
And, in that page, the last image - is that supposed to be there ? Seems more like a game or map to me.
does that tutorial actually sync data between local and remote ? is it production ready ? how does this stack with a firebase impl ?
Hello!
Yes, this tutorial is actual. Data is synchronized, please look here: http://devcenter.appery.io/tutorials/...
And could you please clarify your question about the last picture, sorry not sure I understand you correctly.
Ok you listed the same page as I had referenced that says "When the device is in offline mode, the list service cannot be used." . Thats what is confusing.
Please do a search for these words and you will see what I am talking about.
If the list service cannot be used while offline, what will be listed ? nothing, right?
I assumed the previously browsed list, when online would be cached
When offline, this data will be pulled, alongwith whatever changes made while offline
Please ignore question about the last image.
Hello Twiteroo,
I don't see any problems. All data is kept in local storage. When you are offline you can add data in local storage and delete it from there. When the Internet will appear - all data will be synchronized. And while you are offline, you see all the changes you make, only they are still kept in the local storage not in the database.
Great, ok thanks I will try again.
I am re-using the app I had created in the first part of the tutorial here http://devcenter.appery.io/tutorials/... for the part 2.
Is that a bad idea ? would it interfere with the code from part 1 ?
Hi twiteroo,
It's hard to say is it bad idea...
Actually you should understand how to store data on local site (sqlLite), and how to get data from this local site. Then you can do what you need.
This tutorial ( http://devcenter.appery.io/tutorials/... ) will help to understand it.
Unfortunatly currelty Appery.io does not supports build-in way to sync some DB data with SQLite. So you should implement it yourself.
Regards.