I’ve just read the documentation that HTML5 builds uses IndexedDB for file operations. Unfortunately, when inside an iframe, the IndexedDB may not avaialble because of security concerns, specially on mobile devices (see “Security” section on MDN)
Unfortunately when publishing web games, your game is going to be served inside an iframe of someone else’s website. That’s how it works.
I wonder if anyone had this same issue, and what you’ve done to fix it?
I’m thinking on forking @Pkeod’s DefSave project, and adding conditions to use
window.localStorage instead of Defold’s file operations to circunvent this limitation on iframes.
Would appreciate you guys can give any other insights