Hi all! This is my first post here, so apologies if this isn’t the optimal category for my question.
I’m developing a browser-based IF game that relies on local storage to save game progress. For context: this is a choice-based game written in Ink and developed into a web app, which I’m hosting at itch.io (currently private).
The game’s interface is, hypothetically, very mobile-friendly and should be entirely playable on mobile devices (though I anticipate that it will be played primarily on desktop). But I’ve run into a potentially prohibitive problem.
When testing on iPhone, I find that clearing the browser from active memory (i.e. swiping up to “kill” it) deletes all previously saved games. Presumably, clearing the app is also wiping the local storage.
Local storage is working perfectly in my testing on desktop. And saved games persist in the mobile browser while the browser is still open/active.
Now, maybe most folks don’t close their mobile browser (or restart their device) frequently. But it’s definitely possible that someone would.
All the browser-based IF I’ve played before appears to use local storage. So, I am wondering if anyone else has run into this. If so, have you discovered any workarounds? Ideally, workarounds that don’t involve implementing some sort of external storage with user accounts (which is far beyond the scope of this project).
Thanks in advance for any tips!