LocalStorage does not work on Safari for iPhone 6 Plus

Bugs will be moved here once resolved.

Post » Tue Mar 01, 2016 11:04 pm

Problem Description
Stored game data in keys in LocalStorage cannot be retrieved in a new session, once Safari is closed and re-launched again for preview over Wi-Fi. It seems to be resetting, which shouldn't happen as far as I am aware, since the IP & port is static.

Attach a Capx
Any simple implementation of LocalStorage will show this. Store a key, re-launch, recall a key, it's empty.

Steps to Reproduce Bug
  • Preview a CAPX over wi-fi
  • Set a LocalStorage key
  • Close Safari
  • Re-launch Safari and load up the preview
  • Get the key, it's empty

Observed Result
No LocalStorage persistence.

Expected Result
LocalStorage should persist in new app launches.

Affected Browsers
  • Chrome: NO
  • FireFox: NO
  • Internet Explorer: NO
  • Safari: YES

Operating System and Service Pack
Latest iOS version. iPhone 6 Plus Safari.

This bug DOES NOT exist for Safari on my iPad Mini 2. It is a very strange one and I suspect it's the fault of iOS again...

Construct 2 Version ID
217 & 223 both have same issue
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Wed Mar 02, 2016 12:20 am

Sounds like sandboxing.
Image ImageImage
B
171
S
50
G
180
Posts: 8,397
Reputation: 113,988

Post » Wed Mar 02, 2016 1:47 am

newt wrote:Sounds like sandboxing.


Yep, it used to be a problem with iOS8 and WKWebView, it would reset the LocalStorage. Was fixed in iOS9... now bugged again for iPhone... freaken Apple.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Mon Mar 07, 2016 4:34 pm

I can't reproduce on IPhone 6s (non-Plus). Can you test chrome for ios? Just to be sure that it's WKWebView bug.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Tue Mar 22, 2016 4:36 pm

Can't reproduce on an iPad Air 2 with iOS 9.3 on r224. Given that iOS devices are usually pretty consistent and there are no other reports of this, it sounds like it's specific to your device. Are you sure you haven't set some privacy settings or content blockers that will block storage access?
Scirra Founder
B
400
S
237
G
89
Posts: 24,550
Reputation: 195,537

Post » Tue Mar 22, 2016 11:23 pm

Ashley wrote:Can't reproduce on an iPad Air 2 with iOS 9.3 on r224. Given that iOS devices are usually pretty consistent and there are no other reports of this, it sounds like it's specific to your device. Are you sure you haven't set some privacy settings or content blockers that will block storage access?


You mean there's a privacy setting that can block LocalStorage? I did not know that. I'll check it out.

This problem doesn't occur on my iPad Mini 2 or Air. Only on iPhone 6 Plus. I don't have a normal iPhone 6 to test.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Wed Mar 23, 2016 11:33 am

Yes, there are lots of features to control what is stored on your device, such as private browsing - that would wipe storage when you close the tab. Some browsers refer to all local storage as "cookies" for historical reasons, so if you've done something like disable cookies then that can disable local storage as well.
Scirra Founder
B
400
S
237
G
89
Posts: 24,550
Reputation: 195,537

Post » Wed Mar 23, 2016 10:29 pm

Ashley wrote:Yes, there are lots of features to control what is stored on your device, such as private browsing - that would wipe storage when you close the tab. Some browsers refer to all local storage as "cookies" for historical reasons, so if you've done something like disable cookies then that can disable local storage as well.


:shock: Thanks, I did not know that.

Would those settings disable LocalStorage for wrapped C2 games that use WKWebView?
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Thu Mar 24, 2016 8:48 am

No, I don't think so, the browser settings only affect the browser.
Scirra Founder
B
400
S
237
G
89
Posts: 24,550
Reputation: 195,537


Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests