0 Favourites

LocalStorage not working on iOS.

  • Hi,

    I built a game for iOS. I tested it on iPhone 6s 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.

    Is there a way to solve this? I updated the iOS to 10.2 on both the devices.

    It works fine on android.

    Please help.

  • I just tested Local Storage on iOS 10.2.1 and it worked fine.

    Are you sure it isn't just a mistake in your events? This is why in bug reports we ask for a minimal .capx demonstrating the issue.

  • I just tested Local Storage on iOS 10.2.1 and it worked fine.

    Are you sure it isn't just a mistake in your events? This is why in bug reports we ask for a minimal .capx demonstrating the issue.

    Thanks Ashley for responding. I tested it on android as well. It is working fine on android. I'm not sure why it isn't working on iOS. Is there anything that I need to do?

  • No. It should work. That's all I can say unless you provide a minimal .capx.

  • No. It should work. That's all I can say unless you provide a minimal .capx.

    Okay then I will once again check the events thoroughly. If the problem still exists I will share you the .capx. Thanks alot.

  • > No. It should work. That's all I can say unless you provide a minimal .capx.

    >

    Okay then I will once again check the events thoroughly. If the problem still exists I will share you the .capx. Thanks alot.

    Hi Ashley,

    I checked the events once again, built the app and tested it on iPad but unfortunately the problem still exits. I used the same events for android, there it is working fine. I'm not sure where it went wrong for iOS. When I tested the game on safari browser this is what I get.

    I don't have any issues on any other browser, where the game running is smoothly. 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.

    Here is the .capx. I reduced the game size inorder to make you download it easily.

    Please let me know if I miss anything.

    Thanks,

    Sudeep

  • What version of Safari is that? Are the iOS devices old? What version are they running?

  • What version of Safari is that? Are the iOS devices old? What version are they running?

    Safari version - 5.1.7

    My iPad is an old device but I also tested the game on iPhone 6s and iPhone 7 as well. It gives me the same result. All the devices are running on 10.2.1 version.

  • Ha, are you kidding? Safari 5.1.7? That is the last version before Apple retired Safari on Windows five years ago, right? Nobody uses that any more and it's not useful for testing - I'd avoid using it at all!

    I did test on iOS 10.2.1 and it worked fine. I think you'd best follow the guidelines for a bug report to investigate this further, i.e. create a minimal .capx that reproduces.

  • Ha, are you kidding? Safari 5.1.7? That is the last version before Apple retired Safari on Windows five years ago, right? Nobody uses that any more and it's not useful for testing - I'd avoid using it at all!

    I did test on iOS 10.2.1 and it worked fine. I think you'd best follow the guidelines for a bug report to investigate this further, i.e. create a minimal .capx that reproduces.

    "Ha, are you kidding? Safari 5.1.7?" I didn't know this. Okay fine I will not use this browser for testing.

    I shared the .capx already in the previous post. If you test that and found no bugs then it is really strange for me. I'm not sure what is causing me the issue. Looks like I'm on my own on this.

    Anyways, thanks alot for your time.

  • Oh, right - I missed the .capx. Can you post that to the bugs forum following all the guidelines? That is the standard way of dealing with issues like this.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Oh, right - I missed the .capx. Can you post that to the bugs forum following all the guidelines? That is the standard way of dealing with issues like this.

    Sure. I will do that right away. Thanks alot.

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