Overview
You noticed that while using an app feature that needs to make use of your mobile device's camera to scan a QR code on your Progressive Web App (PWA), the camera doesn't turn on. Instead, you get a blank black screen saying "Point at QR code". This article explains why the camera cannot function properly and thus it cannot register anything.
Information
By design, the PWA differs from a Native App (iOS or Android app) in the way it uses the device's camera, as it accesses the app through the mobile device's browser and the QR Scanner feature is not supported for PWAs.
As a matter of fact, it is a known limitation for PWAs and native mobile phone features like a camera (but also call, voice recording, etc. that use your phone's built-in capabilities) cannot be used by a web app.
Depending on the app feature you have that needs to access your camera, you have to search for alternatives. For example, in case you are using the Loyalty Feature and you wish your app's users to scan a QR code, you can have them use the 'secret code' and 'stamp's functionality, instead.
Related Articles
- Features Working on iOS Android and Web App
- PWA Issues - Troubleshooting
- Building the Loyalty Feature
Comments
0 comments
Please sign in to leave a comment.