PhasedEvolution Posted November 16, 2016 Share Posted November 16, 2016 Hello. I was able to save my highest score on my web browser game due to browser' local storage. However I would like to save the highscore on my android and ios small test... How would I do that ? The_dude8080 1 Link to comment Share on other sites More sharing options...
bruno_ Posted November 16, 2016 Share Posted November 16, 2016 If it is a website its the same thing. If cordova, you could use file plugin to write a file Link to comment Share on other sites More sharing options...
PhasedEvolution Posted November 16, 2016 Author Share Posted November 16, 2016 Just now, bruno_ said: If it is a website its the same thing. If cordova, you could use file plugin to write a file Well I had the html5 game I created first. Then using intelXDK I created a new project that is HTML5 + Cordova. So should I use plugin? ( I am new to this...) Link to comment Share on other sites More sharing options...
bruno_ Posted November 16, 2016 Share Posted November 16, 2016 Yes. I don't know exactly how to do it in intel xdk, I use cordova directly. The plugin is this one: https://github.com/apache/cordova-plugin-file Local storage would also work, but if the user clears the cache your progress is gone. It's also a problem in the web version, the user can also clear his local storage. PhasedEvolution 1 Link to comment Share on other sites More sharing options...
Recommended Posts