I am wrapping my application with cordova, and want to use the
I added the
prepare fn in their docs to the
mounted lifecycle hook, and at one buttons @click calling a method, which executes the
QRScanner.scan and the
Now the functionality is there, it scans with the camera, i get back my QRs decoded value, but I cant see the preview.
I tried making my whole app (<html>, <body> and all children) transparent, opaque, but that didn’t help either.
After I trigger the
.scan(), the background of my
layout-content tag gets removed, and I have a black (transparent until <html>?) background until I call the
.hide(), which restores the colors. I guess that black is where I should see the video.
I am using crosswalk, but tried without too, the behavior remained the same.
I read somewhere, that the plugin should add an underlying video tag, which should be seeable on the DOM (couldn’t spot that with inspect).
I tested it on different Android devices. (Huawei P8 Lite, Google Pixel), same behavior.
I found these also, indicating there is a problem between vue/quasar and the plugin:
Any of you guys have any idea about what I should do to make this plugin work?
Or can you recommending me another one (this seems to be the “best practice” one).
( I got the functionality working with the barcode scanner, but thats not the UI that has been sold to our client, and they are quite adamant on it :S )