Problem Description
____ I built a game for iOS. I tested it on iPhone 6s, iPhone 7 and iPad Air. The game has few videos that are to be played only one time. In order to make this work I used localstorage to identify whether a video is played for the first time. The first video is playing only one time but the rest are playing every time I launch the app. Not only videos but also all the scores are being whipped out.
I used the same events for android, there it is working fine. I'm not sure where it went wrong for iOS. The game doesn't contain any third party plugins even. At first I built the game for android after resolving all the bugs I built it for iOS. Everything is fine and smooth on android but I'm facing problems with iOS.
All the devices are running on 10.2.1 version.
____
Attach a Capx
____ https://drive.google.com/file/d/0B9wfZG ... VYZWM/view ____
Description of Capx
____ The Capx consists of a two videos, 20 levels, instruction screens with localstorage assigned to store values for score, stars and check whether video is played for the first time. It consists of basic events, which are same for all the remaining levels (whole project). All the values are retrieved from the localstorage and assigned to global variables on the MainMenuScreen event. All the events work based on the values of global variables.____
Steps to Reproduce Bug
- Step 1 - This should be tested on an Apple device (iPad or iPhone).
- Step 2 - Run the game and try few levels in Green Leafy Planet. All the values will be saved to the localstorage at end of every layout.
- Step 3 - Once the game is run through few levels, close and reopen the game.
- Step 4- Once again repeat step 2.
Observed Result
____ Once you run Step 4, the game will starts without the first video then will go to the MainMenu screen and check the stars on left-top of the screen, you will not get any stars that are collected in the previous session. Then go to planets selection screen by clicking play. When click on Green Leafy planet, you will find all the instruction screens appearing just as in the previous session. Then when you select a level, you will find all the instruction screens appearing just as in the previous session.____
Expected Result
____ Once you run Step 4, you should not get any videos or instruction screens appearing. The game should start without the first video then should go to the MainMenu screen and should retrieve stars collected in the previous session. Then go to planets selection screen by clicking play. When you click on Green Leafy planet, you should directly go to the Map screen without any instruction screens. Then when you select a level it should go directly to a level without any instruction screens. ____
Affected Browsers
- Chrome: (NO)
- FireFox: (NO)
- Internet Explorer: (NO)
Operating System and Service Pack
____ Windows 10 ____
Construct 2 Version ID
____ Construct 2 r239 ____