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? -
try
window.cordova
-
Unfortunately that does also not work for me
-
Hi, will look into it.
-
I’m having the same error. App works ok on android but cordova is not recognised on iOS
pre-fixing with window doesn’t help.Quasar 0.9
-
Root caused it. Will fix it.
-
Fixed in Quasar edge and will be available in v0.12.1. Thanks for reporting guys!
Reference: https://github.com/quasarframework/quasar/issues/316 -
Thanks! Using yesterday’s edge. Works ok and stable. Almost ready to start alpha testing my app in the apple.android stores
-
Cool! Hope you let us in on its release (if possible)!
Scott
-
@s.molinari Surely I will.
-
@rstoenescu Is it possible to get a branch from v12.0 with the cordova fix? Or maybe just the code snippet (if it’s an easy fix)
Some Modals and popups don’t seem to work with yesterday’s quasar-edge.
(haven’t tried today)
thanks. -
@Martin oh? I’m really interested in what the problems are. Wanna release v0.13 this or next week (depending on how much time I have). Skipped v0.12.1 because edge version contains sooo many novelties and enhancements.
-
@rstoenescu ok, I’ll try again today with latest edge and see if I can give you something reproducible.
-
I’m getting a null error when closing a Modal. After that it’s not possible to open it again.
I’ll try to set up a simple example that reproduces this.
-
At first I thought it was related to my cordova security settings, but that’s fixed.
Now I’m only getting this error
"TypeError: Cannot read property ‘removeChild’ of null
at VueComponent.beforeDestroy "
The same error also appears with PopOvers.
Searching on Google gave me this link (a vue-material issue with md-tooltips)
with similar error.
https://github.com/marcosmoura/vue-material/issues/188 -
@Martin Ok, now I know what’s this about. Can you share your repo to see the exact use case of your Modal pls? A private link or something. You’re on an edge case and I’d like to fix that also. Thanks!
-
Ok I’ve set up a rep for you. What email address can I send the link to?
-
-
Oops, “The owner of this repository (skilldance) is already at their plan limit and will need to upgrade before adding more users.”
-
Ok, discussed with Martin in private. He helped me reproduce his use case and pushed fix for it. Quasar edge has it and v0.13 (next immediate version) will too.