Live serve on device


#1

How can we live serve our app on android device?

In previous CLI " ionic cordova run -l -c -s android " this command worked for me. But I dont know how to do in latest CLI.

Please share if you know the latest command for live serve on device.


#2

It should be:

ionic cordova run android -l

#3

Thank you so much it worked.

but after launch I am getting an error which is " The connection to the server was unsuccessful.(http://172.24.1.22:8100) "


#4

Be sure to have your phone and computer connected on the same network.


#5

Thank you :slight_smile: Issue resolved