data storage in HTML5 for android

Started by
1 comment, last by ikerjamardo 9 years, 1 month ago

hi all,

we have an HTML5 game that we are planning to release into android by wrapping it thru a webview and running it locally (we dont want to port and rewrite the game), how do we handle saving and retrieving game data?

currently, our experience in HTML5 are games hosted in facebook and data are stored in databases thru connection to servers, now we want to make local running games in mobile by using HTML5.

Advertisement
One possibility is that you install your own lightweight web service on the device the user is playing on, and make 'localhost' HTTP requests to it. It seems like a hack, but this shouldn't take too much effort.

Also, Chrome on Android apparently has (had?) support for a nonstandard HTML5 FileSystem API which you could try, but I know nothing about it.

I haven't used HTML5 myself. It's possible there's something built-in which can do this for you.

My recommendation would be to use Apache Cordova to do the wrapping and then the File plugin: http://plugins.cordova.io/#/package/org.apache.cordova.file

This topic is closed to new replies.

Advertisement