Unfortunately that does also not work for me
A
arddor
@arddor
0
Reputation
2
Posts
290
Profile views
0
Followers
0
Following
Posts made by arddor
-
Cordova undefined on iOS
Hello,
I’m trying to use Quasar to build an App for
iOS
andAndroid
using theBarcode
plugin. Android works without a Problem, however on iOS i always getReferenceError: Can't find variable: cordova
. I’m trying the following on button press: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); } );
I tested it with Simulator and Device and the problem occurs with both. Do I have to somehow register the
cordova
variable?