Local storage on iphone (cocoonjs)

0 favourites
  • 1 posts
From the Asset Store
Basic Plugins for Firebase Authentication, Realtime-Database, Firestore, Cloud Storage
  • Hey everyone,

    I almost finished a new app and today I was testing it on diffrent devices.

    I got really frustrated when I saw that the app was working fine in browsers and on android, but some how not on the iphone. The highscore did not get saved.

    That was really strange because it was the same code and it wasn't a problem with the local storage at all. I got another local key for game settings and that was working fine on iphone.

    Then I figured out that my highscore local key was named "Highscore_Speicher" (Speicher = Storage in german^^).

    I removed the "_" and it worked.

    So I just want to share the info if you are developing for cocoonjs/iphone that you shouldn't use "_" in your storage keys (On cocoonjs/android a "_" is not a problem).

    Cheers <img src="smileys/smiley1.gif" border="0" align="middle" />

    Marco

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)