+
Skip to content

Implement unified storage wrapper #17

@mrfatguy

Description

@mrfatguy

At this moment we are using 'localStorage' through browser API. It is said that in certain conditions this can be wiped out. Especially when building Phaser's HTML code to a native applications through Capacitor and Electron.

We need to have a solution that will handle this issue. This isn't an easy task though.

We can use azerion/phaser-super-storage plugin (with correct initiation as its documentation is a bit outdated). It will handle some issues nicely:

  • generalized approach to storage
  • iOS wiping data when HTML game is served via iframe
  • localStorage not being available for some reason.

But it will still not handle other issues:

  • iOS wiping data if use is out of memory (their solution with Cordova plugin is outdated)
  • localStorage being wiped or not persistent in Electron or Capacitor

To solve this we must implement an abstract storage controller that will work in every platform.

Metadata

Metadata

Assignees

Labels

uxUser experience, design, usability, and UI

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载