angular.js - Mobile browser scans QR code and reports error
世界只因有你
世界只因有你 2017-05-15 17:12:45
0
3
786

When scanning the QR code on a mobile browser, an error message appears: cordova_not_avaliable, but it is packaged into an app and scanned without any problem

import {BarcodeScanner } from "ionic-native";

 BarcodeScanner.scan().then((result) => {
            alert(result.text);
        }, (err) => {
            alert(err);
        });
世界只因有你
世界只因有你

reply all(3)
漂亮男人

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!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template