PWA on IOS and offline storage

前端 未结 2 980
清歌不尽
清歌不尽 2021-02-08 21:54

We looking to develop an \"App\" which would have the ability to record the details of a damaged car for assessors. The idea is that a small number of assessors would have compa

2条回答
  •  一整个雨季
    2021-02-08 22:22

    Firstly, iOS restricts third party web browsers (or any app that displays web pages) to using its own engine - installing Chrome on an iPad will not enable access to any web APIs that iOS/Safari doesn't already support.

    So in particular:

    • File System API is not available on iOS, even if you're using Chrome
    • Cache API has a storage limitation per website of 50MB
    • IndexedDB has a storage limitation per website of 500MB or half the device's free space (whichever is smaller)
    • PWAs and their cached data are automatically wiped from devices if not used for a few weeks
    • the "navigator.storage" API for requiring durable data is not support on iOS, even if you're using Chrome or Firefox.

提交回复
热议问题