Trying to use codova wraper
@rstoenescu, you rock. Amazing work. Thanks for the framework.
I have been trying to add cordova to my quasar project. I am a beginer, so i followed steps mentioned on the guides to wrap it.
now when i use console.log(cordova) inside mounted method of my root route, i get undefined.
Is there any specific way to include cordova library in quasar app which i am missing?
i have spend almost 1 week digging good. Please do help.
Thanks for the appreciations!
Are you sure you are using the default starter kit? It should take care of everything for you.
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 using
quasar dev iosand alike, however it’s not clear how to develop if you are planning to use cordova in your app.
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, run
quasar devthen 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.
Will work on this. Stay tuned.