Skip to content

Automatic progress save

The automatic progress save system (APS) is responsible for saving user data, and then syncing it across all the devices where the user is authenticated. For example, a player can start playing your game on the mobile phone, and then continue playing it on the PC (as long as the player is using the same CrazyGames account on both devices).

The APS system can backup data from the local storage (used mostly by HTML5 games), or from IndexedDB (Unity games). If your game is storing data using something else, consider switching to local storage or IndexedDB, or get in touch with us.

Local storage

Most of the HTML5 games save game data in window.localStorage. The APS system automatically backs up and restores the localStorage on the devices where the user plays. As a developer, there is no implementation required from your side.

Info

To avoid conflicts with localStorage keys created by other games, consider using some unique key names. In other words, avoid key names like level or data. Try to prefix the keys with your game initials, or generate a random string and use it as a key.

IndexedDB

Most Unity games will store user data either in PlayerPrefs or a file. On the Web, Unity games save the PlayerPrefs and the files in IndexedDB, which is a database provided by the browser. If you save game data in PlayerPrefs, there is nothing that you should do, it will be synced automatically.

If you store data in a file, you will be asked to provide the file name when uploading your game on our developer portal. If you are using any plugins for storing game data, please ensure you provide the file name if they store the data in a file.

At the moment, we support syncing only a single file. If you save game data in multiple files, please get in touch with us.

The APS system supports syncing both PlayerPrefs and a file with the game data, though, for performance reasons, we recommend that you stick to a single method for storing the game data.

QA Tool

Our QA tool allows simulating fake users for testing the user functionality in your game. The APS system is disabled in the QA tool, meaning that there isn't any progress backed up for the fake users.