doppelganger9 / sample-qrcode-pwa-ionic

Trying to use a QR Code Scanner in an Ionic PWA App (without Cordova)
MIT License
6 stars 9 forks source link

NOTE: current limitations in this sample #3

Open doppelganger9 opened 6 years ago

doppelganger9 commented 6 years ago

This sample uses cordova-plugin-qrscanner in "browser mode" in an attempt to show how a PWA would implement such a feature.

This is more of a proof of concept that shows that it is quite limited right now -- to the extent of my knowledge, of course, please prove me wrong!

The app launches, runs, and can show a video feedback, on Chrome, but it does not succeed in scanning a QR Code in a reliable way, from a computer's webcam.

On Mobile Safari, the video feedback throws an error : see this issue https://github.com/bitpay/cordova-plugin-qrscanner/issues/89#issuecomment-336454494

doppelganger9 commented 6 years ago

So my conclusion to this POC, is: "I cannot yet use a QR Scanner component in a PWA with cordova-plugin-qrscanner"

But on the way, I achieved a few other interesting things, so I thought it might help others, particularly on the hacks to show the transparent background for the plugin.