mobile – My device does not update when I make a modification to the ionic code

Question:

I have a problem, when I make a change to the application code, like putting a color or a title of something, on my device it doesn't update, but in the browser, put a hello on the home page and on my phone this new line doesn't appear inserted how do i sync, when adding or editing something on the device change too ?

Answer:

ionic serve –lab only works in the browser, to run on the device without having to compile directly you have to use the command

ionic cordova run android --device --livereload
ionic cordova run ios --livereload # para iOS
ionic cordova emulate android --livereload #caso esteja usando o emulador

source: https://ionicframework.com/docs/cli/cordova/run/

Or use IonicDevAPP https://blog.ionic.io/announcing-ionic-devapp/

Scroll to Top
AllEscort