
live reload ionic application in emulator
It is not an easy task to Build application, deploy it in emulator, relaunch and test, when we make changes.
Ionic provides an solution for this tedious process which is called live reload.
You can use the following command for live reload your ionic mobile application.
1 |
ionic cordova emulate ios -l |
Because we haven’t mentioned any target device, a default emulator will be launched and application will start running on that.
You can mention the target like this.
1 |
ionic cordova emulate ios -l --target "iPad-Pro--9-7-inch-, 11.2" |
Even though, the above command will help you launch your ionic mobile application on specified target with live reload option, it will not show you any logs. logs are very helpful for debugging.
To see the logs along with live reload option, you may try the following command.
1 |
ionic cordova emulate ios -l --target "iPad-Pro--9-7-inch-, 11.2" --consolelogs |
You may need to refer to the article list all available emulators to understand how to list all available virtual devices.
One comment
list all available emulators | I Dream, I Implement
[…] for further reading you can check the post live reload ionic application in emulator […]