Most frequently asked questions in PWA

niscontractor

Nishant Contractor

Posted on February 6, 2020

Most frequently asked questions in PWA

I am writing this blog to share my findings on a question that I had during the developments of PWA. I went through many blogs and tutorials for this and I found few things are not working with IOS while Android has good support for PWA.

Let's see them one by one.

Can PWA access camera?

Yes, both the OS gives access to the camera, which allows image and video capturing in PWA.
Android: YES
IOS: YES

Can PWA work offline?

PWA leverages data caching during your last interactions with the app, and by doing that it works offline while there is no internet connection.
Android: YES
IOS: YES

Can PWA access the file system?

is the only way you can access a regular storage file system, which will not have any event listener. PWA can't listen to regular file system changes except for the files of APP.

Can PWA access the Bluetooth?

The web Bluetooth API is a low-level API allowing web applications to pair with the nearby Bluetooth Low Energy-enabled peripheral devices and access their services exposed. But it's not supported on all platforms.
Android: YES
IOS: NO

Can PWA access the phone’s GPS?

A lot of browsers support this recent feature and these include Chrome, Edge, Firefox, Safari, and Opera. In IE, you’ll have to battle a few configurations to make it work
Android: YES
IOS: YES

Can PWA use advanced camera functionality?

Advanced camera functionality is not available on all platforms. For example QR CODE scanning.

Android: YES
IOS: NO

Can PWA access contacts?

No there is no way to access contacts in PWA, it is mainly restricted for security purposes.
Android: NO
IOS: NO

Can PWA check for new updates?

Yes, in order to achieve this you have to check your cached files are changed or not. We can implement this by writing a hook in onupdatefound function on the registered Service Worker.

Here I found a detailed blog for this that explained each step in detail.
https://medium.com/progressive-web-apps/pwa-create-a-new-update-available-notification-using-service-workers-18be9168d717

Can PWA have Push Notifications?

This is the most crucial part of any applications and many product owners avoid PWA just because of these limitations. Android support push notifications but IOS does not support. Maybe Apple can update in the next version 14. But we have to wait till that.
Android: YES
IOS: NO

💖 💪 🙅 🚩
niscontractor
Nishant Contractor

Posted on February 6, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related