Using <plugin name="cordova-plugin-qrcode-barcode-scanner" source="npm" />
and have the simple code as follows:
cordova.plugins.barcodeScanner.encode(cordova.plugins.barcodeScanner.Encode.TEXT_TYPE, xanerQR, funcsuc, funcfail)
Function funcsuc(success)
Image1.src = success.file
End Function
In iOS the result is as expected, the image is loaded within the app and is displayed. In android, the image appears to be loaded in its own wrapper and not in the form with a heading of Plain text at the top left and Share at the top right. I need to hit the back button on the Android device to go back to my app’s form. If I try and put the image in a container, I get the same result.
Tip: If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly. (We fixed it for you this time)
They usually have a link to their GitHub repo, where there may be more documentation, as well as a list of issues users have had. Here’s your plugin.
I notice there have been very few downloads of this plugin (11 in the past week) and not a lot of updates to it. There also isn’t an Issues tab in GitHub. You may be able to find a better supported plugin.
A good place to start is npm. Search for cordova barcode. It shows the number of downloads - you can see which ones are popular and/or recently updated.