I'd like to make a simple mobile game for Android and I want to save some specific data on the device (like a scoreboard or list of unlocked levels, etc..). How can I store data on phones or tablets? Should I use the Save game action or WebStorage?
Develop games in your browser. Powerful, performant & highly capable.
Webstorage, you can save any variable to it, scores, levels, unlocks etc.
Hi, "Save game action" is not a solution for your purpose.
Yes, You can use WebStorage to save data in any mobile (like unlocked levels, high score). I have many experiences working with web-storage for mobile. There is a secondary solution, that is Cranberrygame's Phonegap WebSqlDatabase plugin. here is the link : https://www.scirra.com/forum/plugin-websqldatabase_p847916?#p847916 . I don't have many experiences with this plugin, but i am sure this plugin also can be used for your purpose.
Thank you for the answers, I'll look into it when my project has a working build.