84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
手机浏览器扫描二维码时报错:cordova_not_avaliable,但是打包成app,扫描没有问题
import {BarcodeScanner } from "ionic-native"; BarcodeScanner.scan().then((result) => { alert(result.text); }, (err) => { alert(err); });
The problem description is not clear
The QR code scanning function in this project is related to the cordova.js file and can only be run on a device or simulator
You use the cordova或者ionic native plug-in to scan the QR code, which of course can only be called in the packaged app!
cordova
ionic native
The problem description is not clear
The QR code scanning function in this project is related to the cordova.js file and can only be run on a device or simulator
You use the
cordova
或者ionic native
plug-in to scan the QR code, which of course can only be called in the packaged app!