Trying to use codova wraper
-
I have the same problem, using the default starter kit but can’t access cordova (or cordova plugins). I’m using the browser to develop
-
Hi. Can’t use cordova or cordova plugins in browsers. They only work on a mobile phone.
-
Hi, that’s not entirely true, there are Cordova functions and plugins that support browsers. It can be added as a platform (https://www.raymondcamden.com/2014/09/24/browser-as-a-platform-for-your-phonegapcordova-apps/)
That being said, how do I develop a hybrid app using Quasar and utilizing the cordova functions without having to build the project (quasar build) and then run the cordova project (cordova run) again everytime I make a change?
-
I’m also very interested in the @ramonmostert question.
It’s very useful to develop usingquasar dev ios
and alike, however it’s not clear how to develop if you are planning to use cordova in your app. -
@ramonmostert @PavelPolyakov Hmm, using that method requires some small changes on Quasar detection code for Cordova platform. Will investigate. Can you open up a request on Github pls? Thanks!
-
Also, if you want to test your Cordova plugins with hot module reload then temporarily change
<content src="index.html" />
to<content src="URL_TO_YOUR_MACHINE:PORT" />
in/cordova/config.xml
. Close app, runquasar dev
then open your app. You’ll get hot module reload on dev code -
@PavelPolyakov dit it right away https://github.com/quasarframework/quasar/issues/381
Thanks in advance and keep up the good work!
-
It would be really great if you could just develop in cordova browser mode.
For the moment, the only solution I found is to manually add the tag <script type=“text/javascript” src=“cordova.js”></script> to use this mode. -
Will work on this. Stay tuned.
-
Hi @rstoenescu , any news on this?