Routes are not working on my android device
-
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 devicecordova 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.
-
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?
-
There’s a nice debug tool in Chrome browser
https://developers.google.com/web/tools/chrome-devtools/remote-debugging/ -
@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) -
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.
-
@boriscy That’s why Quasar Play comes in handy
http://quasar-framework.org/guide/quasar-play-app.html