I am using ionic DevApp (ionic v4) for the first time, i’m trying to display a json object using the function console.log(). when i run the application in ionic DevApp i see the object only displays in the commande line console (cli) not in the remote devices from google.
Please, is there anyone of you who knows how to solve this issue.
Thank you in advance.
As far as I know, this is not possible. If you want to see the console output, add the parameter
-c
to the ionic serve:this will output the console in the terminal, but you will not have it as pretty as in Chrome.
Anyway, in my experience, DevApp is not a good solution whatsoever. On one hand, you have the console issue, on the other, plugins will not work. There is no significant pro compared to see your app in the browser directly.
I think you would rather use the
--livereload
modifier when running the app. This will make the app to quick recompile and reload every time you save some change (just like inionic serve
). You will get the Chrome inspector, your plugins will work normally and your app will quickly recompile and reload on any change save. Just run this: