Quick question regarding Web Storage and CocoonJS

Discussion and feedback on Construct 2

Post » Wed Jun 04, 2014 12:28 pm

Hi C2 peepz,

I have a question regarding the Web Storage object in CocoonJS and hope someone could shed some light on this for me,

I save my high score using the Web Storage, but have seen that when I release an update for my Android application on the Google Play Store that my locally stored variables get cleared, this is not only my high score, but system settings and basically all things stored in local storage

Is this at all possible?
B
30
S
4
G
3
Posts: 67
Reputation: 2,329

Post » Wed Jun 04, 2014 12:48 pm

Can't say about game updates cause never did them. But for webstorage that might be problematic.
You have one game with specific local values. and probably Update for that game counts as a separate game - with different set of local values.
ImageImageImageImage
B
157
S
64
G
41
Posts: 2,590
Reputation: 34,640

Post » Wed Jun 04, 2014 2:13 pm

I never had that issue.

My games updated fine, kept all the progressed. Used WebStorage.

It only happens when you manually uninstall the old version first, it will delete all the cache and saved data (webstorage). If you install on top of it, it will simply update and keep the old data.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,609

Post » Wed Jun 04, 2014 2:17 pm

Silverforce wrote:I never had that issue.

My games updated fine, kept all the progressed. Used WebStorage.

It only happens when you manually uninstall the old version first, it will delete all the cache and saved data (webstorage). If you install on top of it, it will simply update and keep the old data.


Thanks so much for the reply, I thought it might be the case, because I always uninstall it manually before testing the new version and never updated my app using the play store.
B
30
S
4
G
3
Posts: 67
Reputation: 2,329


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests