Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

HTML5 local storage is lost at every update.

A topic by Omiod created 25 days ago Views: 119 Replies: 2
Viewing posts 1 to 3

I've seen many three years old threads about this, and looks like it is not yet fixed.

The issue is that the games status is saved in Javascript local storage, but after an update the game is stored on a different address, and all the data is lost.

Local storage is extremely easy to use, while any other solution, like using external API is quite annoying.

The only solution I see is to host the game in my own website, but this could be an issue for many itch users, not to mention loosing the visibility on this site.

Please make your CDN to save the games on fixed address, thanks.

Have you considered using a central database that doesn't require you to set up a server? Things like Firebase database or AWS DynamoDB. There might be some JS only way to do it like so https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API

(1 edit)

Sadly IndexedDB has the same domain limits as local storage.

Things like Firebase could be a solution but because the stored data is different for each user, a user ID has to be handled, along with credentials, and so on. Sounds complex a lil too complex.

It is sad that the easiest solution is not available.