How do I stop Webstorage disappearing on App Close

Get help using Construct 2

Post » Tue Oct 14, 2014 1:32 am

As Per title.

I have a little game that when the app is closed the webstorage (top10) appears to vanish, this happens not only browser based but also ports to Windows 8.1 and Android.

Is there a work around for this OR a different solution, perhaps a plugin?
B
5
Posts: 6
Reputation: 239

Post » Tue Oct 14, 2014 2:27 am

It sounds like you're using session storage, rather than local storage.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,207
Reputation: 43,836

Post » Tue Oct 14, 2014 2:59 am

Definitely using Local Storage and not Session, I have checked and double checked.
B
5
Posts: 6
Reputation: 239

Post » Tue Oct 14, 2014 4:33 am

Found the problem, wasnt actually with webstorage. Was with the array reading the contents, was grabbing one value and repeating :)
B
5
Posts: 6
Reputation: 239


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests