Browse Source

Use different QR scanning plugin

master
Skylar Ittner 5 months ago
parent
commit
52c7660734
2 changed files with 11 additions and 4 deletions
  1. 5
    4
      package.json
  2. 6
    0
      www/js/sendmoney.js

+ 5
- 4
package.json View File

@@ -12,12 +12,11 @@
"dependencies": {
"cordova-android": "^8.0.0",
"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-inappbrowser": "^3.0.0",
"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": {
"plugins": {
@@ -26,7 +25,9 @@
"cordova-plugin-headercolor": {},
"cordova-plugin-app-version": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-barcodescanner": {}
"phonegap-plugin-barcodescanner": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
}
},
"platforms": [
"android"

+ 6
- 0
www/js/sendmoney.js View File

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

Loading…
Cancel
Save