Commit bc119407 by Kim Peace

Merge branch 'feature/#42693_rfid' into 'feature/1.4.0'

#42693 rfid and barcode scan

See merge request !3
parents 715f9a96 df5d8282
...@@ -2966,6 +2966,8 @@ CHK.startScan = function() { ...@@ -2966,6 +2966,8 @@ CHK.startScan = function() {
try { try {
if (CHK.isAndroid) { if (CHK.isAndroid) {
android.startScan(); android.startScan();
} else if (CHK.isIOS) {
webkit.messageHandlers.startScan.postMessage({});
} }
} catch (e) { } catch (e) {
return; return;
...@@ -2978,6 +2980,8 @@ CHK.scanClose = function() { ...@@ -2978,6 +2980,8 @@ CHK.scanClose = function() {
try { try {
if (CHK.isAndroid) { if (CHK.isAndroid) {
android.stopScan(); android.stopScan();
} else if (CHK.isIOS) {
webkit.messageHandlers.stopScan.postMessage({});
} }
} catch (e) { } catch (e) {
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment