ionic-team / ionic-team/ionic-storage
(question) rationale behind IndexedDB being the 1st driver in driversOrder ?
- Dominant language
- TypeScript
- Stars
- 456
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
Hello
We're migrating an ios/android ionic app from an older version and noticed localStorage is now the 2nd preferred driver of storage, the 1st being IDB.
Looking thru ionic-storage code and localforage code, as far as I understand, IDB was unsafe for older iOS versions (12.x, especially given WebKit bugs). So the code switches between IDB and localStorage.
We do not target older iOS versions, do not target IE, do not target android < 9.
- can I safely use localStorage or should I really use IDB ?
- if the user backups and reinstalls its app, are IDB or localStorage persisted between reinstalls or should I use SQLite ?
thx
Contributor guide
Assessment
This issue has not been assessed yet.