Localstorage limit on Safari mobile
-
Hi guys,
I’ve been making an app with quasar and I’m absolutely loving it. I want to allow my client to save data offline so that when there is no internet connection the app can still be used. It’ll just sync later.
Problem is, 5mb is not alot when I have to store images of each 300kb. Together with some other data the data cap is easily reached. Are there any known ways of increasing localstorage capabilities? I’ve been trying to find some concrete information online but to no avail.
I’m hoping you guys might know how I can stretch it even just a little bit, 10mb or 15mb would make a big difference.
-
You can use sqlite for that tho.
-
@hawkleaf said in Localstorage limit on Safari mobile:
I’m hoping you guys might know how I can stretch it even just a little bit, 10mb or 15mb would make a big difference.
The recommended way is of course browser’s indexeddb:
https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_APIThere are wrappers for that - like this one:
https://dexie.org/…which deals with safari specifics:
https://dexie.org/docs/IndexedDB-on-SafariIf you want to kill two birds with one stone (much space and server sync/offline work) then you can even use something like this:
https://pouchdb.com/