WKWebView WebStorage can be cleaned by iOS8

Discussion and feedback on Construct 2

Post » Mon Dec 08, 2014 6:20 pm

Silverforce wrote:
robotecollective wrote:Does this affect the Canvas+ apps also?


I'm not sure, but I read iOS8's auto-clean is allowed to go after temporary generated files or browser generated files when space is low.

I already have 2 users leaving me a 1 star rating cos they lost their save, that's AFTER I put a warning in the app description that they should not be very low or out of storage space else their auto save won't work. People just don't read app descriptions these days!


Ouch, so sorry for you. It sucks when people don't read the descriptions and leave 1 star ratings, been there.

It seems this can affect every game that uses webstorage then. Oh. Shit.
Image
B
98
S
36
G
17
Posts: 351
Reputation: 15,953

Post » Mon Dec 08, 2014 7:21 pm

I also just bought your game, nice work! Check your reviews.

:)
Image
B
98
S
36
G
17
Posts: 351
Reputation: 15,953

Post » Mon Dec 08, 2014 7:21 pm

Is this also an issue with a phonegap application?
Image
B
15
S
4
G
4
Posts: 134
Reputation: 3,177

Post » Mon Dec 08, 2014 7:46 pm

So, to clarify, this is an exporter issue? If so, couldn't we notify the CocoonJS/Phonegap/Crosswalk devs and ask that they 'flag' webstorage keys so they won't be deleted?

Has anyone seen this happen in a browser based game?
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Mon Dec 08, 2014 10:35 pm

@robotecollective Thanks! Hope you enjoy it.

@hazneliel
@TiAm
It seems to be a WKWebView problem since I never encountered it for other exporters. So it could potentially be an Apple problem where their WKWebView generated files are flagged temporary & thus, safe to clean for storage space. I have to wait for ludei's response and see what they think the problem is. If its Apple, then probably it will be fixed in the next iOS update.
Last edited by Silverforce on Mon Dec 08, 2014 11:27 pm, edited 1 time in total.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Mon Dec 08, 2014 10:38 pm

@Silverforce Thanks for letting us know. It sounds like an issue that will impact a lot of people. Keep us in the loop! :)
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Fri Jan 09, 2015 12:39 pm

Hello @Silverforce
About 20 minutes ago i got an email from ludei, an answer to a question here, it seems that this issue is fixed. Please reply here if it's really fixed, and if old webstorage data is not missing after recompile, when you try it.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Fri Jan 09, 2015 10:44 pm

So, webview+ is basically ludei's cordova based build service, right? So it's comparable to crosswalk? How does it run on android 4.x devices?

Sometimes all these export options get my head spinning a bit...:)
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Fri Jan 09, 2015 11:02 pm

@Sisyphus
It's only for CJS 2.1.1 which is not useable due to a nasty bug with WebStorage (LocalStorage) being reset at each start up. I don't even know how they got it through QA.

Only CJS 2.1 is good, I hope they put that fix into 2.1 until they figure out whats wrong with 2.1.1 clearing save data.

WebView+ for Android is similar to Crosswalk, but without the option for 3rd party plugin integration as easily.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Fri Jan 09, 2015 11:52 pm

Silverforce wrote:@Sisyphus
It's only for CJS 2.1.1 which is not useable due to a nasty bug with WebStorage (LocalStorage) being reset at each start up. I don't even know how they got it through QA.

Only CJS 2.1 is good, I hope they put that fix into 2.1 until they figure out whats wrong with 2.1.1 clearing save data.

WebView+ for Android is similar to Crosswalk, but without the option for 3rd party plugin integration as easily.

You tried it? Webstorage still cleared on every startup? I can't understand what they fixed then. They fixed the "clear on low memory" bug, but not fixed "clear on startup", right?
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests