Local Storage don't work (compile to iOS, Cocoon.io(webview)

Bugs will be moved here once resolved.

Post » Wed Jul 20, 2016 11:55 pm

Problem Description
System Save, Load and local storage do not work after compile with Cocoon.io to iOS (webview mode)
Attach a Capx
any system save/load operation
https://www.dropbox.com/s/2wsoblqh7ny4f ... .capx?dl=0
Description of Capx
Blue sprite becomes red in 5 seconds. After that system save comes to action.
By pressing green sprite you can system load to the moment when blue sprite becomes red
Steps to Reproduce Bug

  • Step 1 - Export Project as Cordova (minify unchecked, WKWebView unchecked)
  • Step 2 - delete xml file
  • Step 3 - Achieve project and put to cocoon.io cloud
  • Step 4 - delete all plugins expect ios plugin (com.ludei.webviewplus.ios) in cocoon.oi
  • Step 5 - Compile project as native app with option webview+ to iOS
  • Step 6 - Download compiled achieve and open in XCODE
  • Step 7 - Export from XCODE as for Ad HOC Deployment
  • Step 8 - app.ipa file and copy it to i_tunes
  • Step 9 - Connect iOS device and install app on it
  • Step 10 - Run app and play until one of the save points.
  • Step 11 - Fully quit app and run from the begining
  • Step 12 - Load from the saved slot - data on slot fully lost
Or

[*] install Cocoon Dev on iOS device
[*] Run preview mode in http://192.168.0.1:50000 in Construct 2
[*] Run Construct 2 game in Cocoon Dev with web view or webview+ mode


Observed Result
After app is fully quit (swiped off ) in iOS, local storage data are lost.
Load and Save work during app is not fully closed.
Expected Result
Use save load system function, store data into local storage
Affected Browsers
  • Chrome: NO
  • FireFox: NO
  • Internet Explorer: have not checked
  • Safary: NO
  • Gapphone - published as native app to iOS - NO
  • Cocoon.io - published as native app to iOS - YES with option webview and webview+
  • Cocoon.io - published as native app to iOS - NO with option canvas+
  • Cocoon dev app - as preview 192.168.0.100:50000 -NO if run as canvas+
  • Cocoon dev app - as preview 192.168.0.100:50000 -YES if run as webview+ and webview

Operating System and Service Pack
OS X EL Capitan v. 10.11.5 (Construct 2 runs on virtualbox, Windows 10 64-bit )
Construct 2 Version ID r231 64-bit
B
19
S
6
G
1
Posts: 25
Reputation: 1,719

Post » Thu Jul 21, 2016 10:59 am

If this works everywhere except Cocoon.io then it's most likely a Cocoon bug. Local storage is a standard browser feature so if that's not working it must be caused by the engine. I suggest reporting this to Ludei.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Wed Aug 10, 2016 12:06 am

@Sergeyk I am having the same problem with localstorage save and iOS export from Cocoon. I wish they would answer your bug report in Cocoon's Forums.

But have you tried recompiling a previously exported version of your game before r231 as you noticed that's when the problem started happening? I'd love to know if a previous version of Construct fixes the problem.
Play Ball Walker App Store | Google Play | Amazon



Image
B
29
S
5
Posts: 109
Reputation: 2,039

Post » Mon Aug 15, 2016 6:07 am

I noticed the problem in C2 v-227 and higher. Unfortunately I cannot say anything about previous versions of C2.
B
19
S
6
G
1
Posts: 25
Reputation: 1,719


Post » Wed Sep 07, 2016 7:00 am

Both webview and webview+ don't work with local storage at this moment! You need to go only with canvas+
B
19
S
6
G
1
Posts: 25
Reputation: 1,719

Post » Fri Sep 09, 2016 1:37 pm

Yep. Go with Canvas+. I don't think a fix is coming anytime soon for WebView.
Play Ball Walker App Store | Google Play | Amazon



Image
B
29
S
5
Posts: 109
Reputation: 2,039

Post » Tue Feb 14, 2017 1:06 am

Cocoon.io still hasn't fixed this. Can't wait to see what Scirra has up their sleeve for mobile app building so we can forget having to use 3rd party builders.
Play Ball Walker App Store | Google Play | Amazon



Image
B
29
S
5
Posts: 109
Reputation: 2,039

Post » Tue Feb 14, 2017 2:30 am

i dont like cocoon, too much problems.
B
9
S
4
G
1
Posts: 14
Reputation: 1,317

Post » Wed Feb 15, 2017 1:16 am

what do you use @spectrelonewolf ?
Play Ball Walker App Store | Google Play | Amazon



Image
B
29
S
5
Posts: 109
Reputation: 2,039

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 6 guests