Hi dear Unity Community!
I’m having a big problem with my WebGL Build.
I’m loading and saving my data via Playerprefs. Also I have Data Caching enabled.
My Build is about 100 MB in total but about 40 MB are streamed videos / assdts.
At the very beginning of my game code I’m loading save data from Playerprefs. In Firefox I don’t see any issues. In Chrome nearly every second time I start the game I get this message: “IndexedDB is not available. Data will not persist in cache and PlayerPrefs will not be saved.”
But I have already saved data. So every second time I start the game in Chrome I can see my saved data.
Funny thing is: when Unity tells me that IndexedDB is not available the cached Game Files however are loaded so my loading time is very fast. As I have read the cached data of the engine / game is also stored in IndexedDB. So it seems: Unity has access to IndexedDB for engine code but doesn’t give me access to PlayerPrefs.
I’m using Unity 5.5.0f3
Sometimes I had this issue in 5.4.1f1 but in 5.5 it appears much more often.
How can such problems appear? And how to solve them?
Thanks in advance!
Best,
Mischaal