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.
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.
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.
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
Can PWA use advanced camera functionality?
Advanced camera functionality is not available on all platforms. For example QR CODE scanning.
Can PWA access contacts?
No there is no way to access contacts in PWA, it is mainly restricted for security purposes.
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.
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.