Answer the question
In order to leave comments, you need to log in
The BarcodeScanner plugin function in the PhoneGap application for scanning a QR code does not return anything - why?
There is a PhoneGap mobile application that is supposed to use a QR code scanner. I use the plugin: BarcodeScanner, I do everything according to the instructions.
Added to config.xml:
<plugin name="com.phonegap.plugins.barcodescanner" spec="2.0.0" source="pgb" />
cordova.plugins.barcodeScanner.scan(
function (result) {
alert("We got a barcode\n" +
"Result: " + result.text + "\n" +
"Format: " + result.format + "\n" +
"Cancelled: " + result.cancelled);
},
function (error) {
alert("Scanning failed: " + error);
}
);
Oct 11 20:18:49 iPhone MyApp[4669] <Warning>: WARNING: -[<AVCaptureVideoPreviewLayer: 0x15de5610> isOrientationSupported] is deprecated. Please use AVCaptureConnection's -isVideoOrientationSupported
Oct 11 20:18:49 iPhone MyApp[4669] <Warning>: WARNING: -[<AVCaptureVideoPreviewLayer: 0x15de5610> setOrientation:] is deprecated. Please use AVCaptureConnection's -setVideoOrientation:
Oct 11 20:18:49 iPhone MyApp[4669] <Warning>: WARNING: -[<AVCaptureVideoPreviewLayer: 0x15de5610> setOrientation:] is deprecated. Please use AVCaptureConnection's -setVideoOrientation:
Oct 11 20:18:58 iPhone kernel[0] <Notice>: AppleH4CamIn::ISP_FlushInactiveDARTMappings: 0x00000000
Oct 11 20:18:58 iPhone MyApp[4669] <Error>: -[CDVPluginResult toSuccessCallbackString:]: unrecognized selector sent to instance 0x15d28ad0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question