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

    Routes are not working on my android device

    Starter Kits
    android cordova
    3
    6
    3124
    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.
    • B
      boriscy last edited by boriscy

      I have created the cordova app and the routes work fine when I run cordova run browser and also when I run with the emulator but when I run it on my device cordova run android, device is a sony z1 compact.

      This is my router

      import Vue from 'vue'
      import VueRouter from 'vue-router'
      
      Vue.use(VueRouter)
      
      function load (component) {
        return () => System.import(`components/${component}.vue`)
      }
      
      export default new VueRouter({
        routes: [
          { path: '/', redirect: '/public/login' }, // Default
          { path: '/public', component: load('Public'),
            children: [
              {path: 'login', component: load('Login')},
              {path: 'register', component: load('Register')}
            ]
          },
          { path: '/private', component: load('Private'),
            children: [
              {path: 'listen', component: load('Listen')}
            ]
          },
          { path: '*', component: load('Error404') } // Not found
        ]
      })
      

      does anyone have lights please.

      1 Reply Last reply Reply Quote 0
      • B
        boriscy last edited by

        I have found the issue and it was related to the config.xml and other error in the code which is coming from a cordova plugin, is there any way I can see the errors in my device, how to debug errors on my device?

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

          There’s a nice debug tool in Chrome browser
          https://developers.google.com/web/tools/chrome-devtools/remote-debugging/

          1 Reply Last reply Reply Quote 1
          • rstoenescu
            rstoenescu Admin last edited by

            @boriscy Remote debugging: http://quasar-framework.org/guide/cordova-wrapper.html#Remote-Debugging
            Please also share your findings. Which cordova plugin is at fault? Maybe we can add to “Troubleshoot and Tips” section (http://quasar-framework.org/guide/app-troubleshoot-and-tips.html)

            1 Reply Last reply Reply Quote 0
            • B
              boriscy last edited by

              Thanks for the help, I have made possible remote debugging, it takes some time to do a quasar build then cordova build and run, I will have to test.

              1 Reply Last reply Reply Quote 0
              • rstoenescu
                rstoenescu Admin last edited by rstoenescu

                @boriscy That’s why Quasar Play comes in handy 😉 http://quasar-framework.org/guide/quasar-play-app.html

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