Use different QR scanning plugin

master
Skylar Ittner 5 years ago
parent 16d55af2ae
commit 52c7660734

@ -12,12 +12,11 @@
"dependencies": { "dependencies": {
"cordova-android": "^8.0.0", "cordova-android": "^8.0.0",
"cordova-plugin-app-version": "^0.1.9", "cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-barcodescanner": "^0.7.4",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-headercolor": "^1.0.0", "cordova-plugin-headercolor": "^1.0.0",
"cordova-plugin-inappbrowser": "^3.0.0", "cordova-plugin-inappbrowser": "^3.0.0",
"cordova-plugin-statusbar": "^2.4.2", "cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3" "cordova-plugin-whitelist": "^1.3.3",
"phonegap-plugin-barcodescanner": "^8.0.1"
}, },
"cordova": { "cordova": {
"plugins": { "plugins": {
@ -26,7 +25,9 @@
"cordova-plugin-headercolor": {}, "cordova-plugin-headercolor": {},
"cordova-plugin-app-version": {}, "cordova-plugin-app-version": {},
"cordova-plugin-inappbrowser": {}, "cordova-plugin-inappbrowser": {},
"cordova-plugin-barcodescanner": {} "phonegap-plugin-barcodescanner": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
}
}, },
"platforms": [ "platforms": [
"android" "android"

@ -43,6 +43,12 @@ $("#scanqrcodebtn").on("click", function () {
}, },
function (error) { function (error) {
app.dialog.alert(error, "Scan Error"); app.dialog.alert(error, "Scan Error");
},
{
showTorchButton : true,
prompt: "Scan a code to send money",
resultDisplayDuration: 0,
disableSuccessBeep: true
} }
); );
}); });

Loading…
Cancel
Save