简体   繁体   中英

Limits of Progressive Web Apps: transforming a native app into a progressive web app

I work in a Company and I got the task to check if it is possible to transform the current native app we are using into a Processing Web Application.

The main reason for developing a PWA is because of its offline functionality and because it will be accessible on every device (smartphone, tablet, desktop).

Native App:

The Application is about providing news, articles and different products to customers. Every customer (user) has his own profile and is only allowed to see certain products. Each product has at least one picture and at least as many documents for download.

Question:

Because there are alot of products, pictures and documents I am not sure till which point the PWA will be able to let the user see and download the pictures and documents of the products.

In best case every product will be displayed offline. Due to the large amount of products and images, it is probably not possible.

What would be a realistic amount of content that would be available offline?

When may the transformation of a native app into a pwa become problematic?

It looks like your main bottleneck will be offline storage. The limitations consist in 2 things there: The amount of data you can store and the persistency.

Regarding the amount, the limitations are the following at the moment:

  • Chrome <6% of free space
  • Firefox <10% of free space
  • Safari <50MB
  • IE10 <250MB
  • Edge Dependent on volume size

https://developers.google.com/web/fundamentals/instant-and-offline/web-storage/offline-for-pwa (Check as well the section below:Current and future offline storage work)

This is actually not a lot when it comes to images. You could however store a lower resolution of them offline and use the original resolution only when there is a connection.

Regarding persistency, the handling is not the same on different platforms, but generally vague. While chrome you meanwhile can ask for persistent storage (only the user can clear the storage, but not the system), in Safari the system can wipe your storage after a while. https://developers.google.com/web/updates/2016/06/persistent-storage

See also: Is IndexedDB on Safari guaranteed to be persistent?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM