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

0 favourites
  • 12 posts
From the Asset Store
_______ Huge collection of metal fixtures ________
  • 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

  • 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.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I noticed the problem in C2 v-227 and higher. Unfortunately I cannot say anything about previous versions of C2.

  • You used system webview or webview+ ?

  • Both webview and webview+ don't work with local storage at this moment! You need to go only with canvas+

  • Yep. Go with Canvas+. I don't think a fix is coming anytime soon for WebView.

  • 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.

  • i dont like cocoon, too much problems.

  • what do you use spectrelonewolf ?

  • I use XDK intel, but i read if you can export with cocoon you have better result in

    game performance. I was try and try but and only have black screens and crashes.

    I was exported in croswalk and web view, but i think my problem causes are plugins <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">.

    In XDK i have good performance for my game in android with Quadcore and 1gb of Ram, i dont know about your game.

    this is my game https://www.moras-alejandro.com/Ahorcad ... index.html if you want see.

    hahaha sorry about my eng.

  • I used to use Intel XDK but randomly it would export a bad version of my game that would lag on some devices. And I also ran into issues with getting some plugins to work. Cocoon we view+ used to work great, but then I switched to canvas for iOS when they were having issues. Coocon puts out a fast performing game, but sometimes the server is down or has other issues. Nothing is perfect, but so far I've had a better experience with Cocoon.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)