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