Chrome offline storage not working on iOS

410 views Asked by At

I'm trying to develop a solution for persisting large data files needed by my web app without direct interactions with the user. IndexedDB has limitation up to 2GB if I'm correct, and I'm looking for something more like 10GB. I've managed to create a solution with FileSystem API and Chrome's Quota Management API which is working on Windows and Android devices. However it's not working on iOS. On iOS I'm not able to use FileSystem API because I get this error:

DOMException: The operation failed because it would cause the application to exceed its storage quota.

Requesting bigger quota is done via Chrome's Quota Management API mentioned above, but on Chrome running on iOS navigator.webkitPersistentStorage is undefined. It's working just fine on Windows and Android. There is no iOS limitation mentioned in official docs, actually nowhere in the Internet as far as I searched. Has anyone overcame this issue or knows where it could be reported to reach Chrome support?

Resources worth mentioning: https://developer.chrome.com/docs/apps/offline_storage/#requestQuota https://developer.mozilla.org/en-US/docs/Web/API/FileSystem

1

There are 1 answers

4
cnknob On

The Chrome Quota Management API is not available on iOS. However in iOS Safari you get asked to give more storage if you use indexedDB and it does not seem to be limited at 2 GB. You can test it with a website like this: https://demo.agektmr.com/storage/