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

    [CAN’T BE SOLVED] Android build with proxy server

    Framework
    2
    4
    485
    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.
    • M
      maxxiris last edited by maxxiris

      This may off-topic of quasar but hope anyone could help

      I set proxy server in quasar config.

      devServer: {
        // https: true,
        // port: 8080,
        open: true, // opens browser window automatically
        proxy: {
          // proxy all requests starting with /api to jsonplaceholder
          '/api': {
            target: 'http://localhost/cbccvc_dev/',
            changeOrigin: true,
            pathRewrite: {
              '^/api': ''
            }
          }
        }
      },
      

      Now with android build, url will not open external link through proxy. When debug app return a file:// link like file:///api/index.php?option=com_api&controller=core&task=login

      So how could I keep android app to understand proxy setting when build. Hope anyone could help. Tks

      1 Reply Last reply Reply Quote 0
      • M
        maxxiris last edited by maxxiris

        I look around and Ionic has exact the same proxy setting as quasar

        https://ionicframework.com/docs/v3/cli/configuring.html#service-proxies

        Hope anyone know how to port this to quasar mobile app

        1 Reply Last reply Reply Quote 0
        • M
          maxxiris last edited by maxxiris

          After testing I find out Ionic CLI is the same quasar, mean proxy just work as a normal reverse proxy on Pc environment.

          So I want to confirm that there is NO way to make proxy work with a cordova build atm (not sure if someone make a plugin in future that control xhr call and divert through a native proxy)

          1 Reply Last reply Reply Quote 0
          • C
            Cobeland last edited by

            Did you solve that problem?

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