Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 是否有支持cordova/ionic的外部QR扫描仪?_Ionic Framework_Cordova Plugins_Ionic4 - Fatal编程技术网

Ionic framework 是否有支持cordova/ionic的外部QR扫描仪?

Ionic framework 是否有支持cordova/ionic的外部QR扫描仪?,ionic-framework,cordova-plugins,ionic4,Ionic Framework,Cordova Plugins,Ionic4,我正在使用ionic框架构建一个QR阅读应用程序。我想使用一个外部二维码扫描仪,可以通过蓝牙或usb(android)连接到应用程序,并能够在应用程序上读取扫描的二维码 是否有支持cordova/ionic支持的QR扫描仪设备 我曾尝试在谷歌搜索,但没有找到任何关于QR扫描仪外部设备的信息 QR扫描仪插件: 但似乎不支持任何外部QR扫描仪设备 import { QRScanner, QRScannerStatus } from '@ionic-native/qr- scanner/ngx';

我正在使用ionic框架构建一个QR阅读应用程序。我想使用一个外部二维码扫描仪,可以通过蓝牙或usb(android)连接到应用程序,并能够在应用程序上读取扫描的二维码

是否有支持cordova/ionic支持的QR扫描仪设备

我曾尝试在谷歌搜索,但没有找到任何关于QR扫描仪外部设备的信息

QR扫描仪插件: 但似乎不支持任何外部QR扫描仪设备

import { QRScanner, QRScannerStatus } from '@ionic-native/qr- 
scanner/ngx';


 constructor(private qrScanner: QRScanner) { }

 ...

// Optionally request the permission early
this.qrScanner.prepare()
.then((status: QRScannerStatus) => {
 if (status.authorized) {
   // camera permission was granted


   // start scanning
   let scanSub = this.qrScanner.scan().subscribe((text: string) => 
  {
     console.log('Scanned something', text);

     this.qrScanner.hide(); // hide camera preview
     scanSub.unsubscribe(); // stop scanning
   });

 } else if (status.denied) {
   // camera permission was permanently denied
   // you must use QRScanner.openSettings() method to guide the user to the settings page
   // then they can grant the permission from there
 } else {
   // permission was denied, but not permanently. You can ask for permission again at a later time.
 }
  }).catch((e: any) => console.log('Error is', e));
如果有人能推荐任何支持上述过程的QR扫描仪设备,那就太好了!提前谢谢