I have implemented some JavaScript codes to allow user to scan QR code from a Progressive Web App (PWA).
Used QRScanner library: https://github.com/mebjas/html5-qrcod