Using with Framework CLIsĬapacitor supports CLIs with live reload capability.įirst, determine your computer’s IP address on your LAN. Ionic build, copies web assets into the specified native platform, then opens the IDE for your native project (Xcode for iOS, Android Studio for Android).Ĭ is removed after the command terminates. Ionic cap run command to start the Live Reload process: ionic cap run android -l -external Native-run (a cross-platform command-line utility for running native binaries on devices and simulators/emulators): npm install -g native-run
The Ionic CLI includes a complete Live Reload experience, automating all of the steps that are detailed manually below. If running on a device, make sure it is on the same Wi-Fi network as your computer.
Rather than deploy a new native binary every time you make a code change, it reloads the browser (or Web View) when changes in the app are detected. Live Reload is useful for debugging both the web portion of an app as well as native functionality on device hardware or simulators.