Running cordova Android dev without a server
-
Hi, is it possible to run quasar dev -m android without replacing the cordova URL of file:// in config.xml with the IP address of the development machine? This is causing some CORS related issues for me.
-
I have temporarily solved this problem by running “quasar build -m android” followed by “cordova run android” in the src-cordova folder. However, this is less than ideal. I hope quasar devs can consider creating a command line option for this use case when using “quasar dev -m android”.
-
@walfin y ou can try this answer from so https://stackoverflow.com/questions/37101783/simulate-cordova-plugins-in-browser/37107939. If you are trying to run dev in a device it is understandable that it uses the ip of your local machine.
-
No but I want it to run on a device, exactly the way cordova runs it (from file://) rather than from the IP of my development machine. Things work differently on an actual mobile device.
-
Any chance of this being implemented? If possible it would be nice if the non-minified source code could be installed to cordova in dev mode with the cordova app running from file://. Running “quasar dev” with the development machine as the server results in CORS issues which do not arise when the app is running from file://.
-
@walfin nothing for this atm, you could issue for a feature request (if this is possible in dev mode).
-
How do I issue a feature request?
-
@walfin at quasar’s github repo, with a ‘feature request’ label.
-
OK, I have lodged this as an issue on GitHub.
-
I have found a temporary workaround. My solution is to build with quasar build -m android --debug and add devtool:!ctx.dev&&!ctx.debug?’’:‘eval-source-map’ under build in quasar.conf.js and also to disable my use of webpack-obfuscator if !ctx.dev&&!ctx.debug. Thereafter I run cordova run android from src-cordova.
However, a special flag for this use case would still be nice.