Open doppelganger9 opened 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.
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