No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Running cordova Android dev without a server

    CLI
    2
    10
    857
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      walfin last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • W
        walfin last edited by

        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”.

        1 Reply Last reply Reply Quote 0
        • metalsadman
          metalsadman last edited by metalsadman

          @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.

          1 Reply Last reply Reply Quote 0
          • W
            walfin last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • W
              walfin last edited by

              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://.

              1 Reply Last reply Reply Quote 0
              • metalsadman
                metalsadman last edited by

                @walfin nothing for this atm, you could issue for a feature request (if this is possible in dev mode).

                1 Reply Last reply Reply Quote 0
                • W
                  walfin last edited by

                  How do I issue a feature request?

                  metalsadman 1 Reply Last reply Reply Quote 0
                  • metalsadman
                    metalsadman @walfin last edited by

                    @walfin at quasar’s github repo, with a ‘feature request’ label.

                    1 Reply Last reply Reply Quote 0
                    • W
                      walfin last edited by

                      OK, I have lodged this as an issue on GitHub.

                      1 Reply Last reply Reply Quote 0
                      • W
                        walfin last edited by walfin

                        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.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post