-
Hello! Is it possible to run my app on a device (in android studio) with live-reload? In cordova the command is Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Live-reload is achieved with several tools working together. Capacitor does its part by offering a way to set the Web View URL (see the docs), but you need an actual server running your app. Many Framework CLIs offer this capability, but don't integrate with Capacitor. That's where the Ionic CLI can be helpful, because it offers
|
Beta Was this translation helpful? Give feedback.
-
As dwieeb mentioned, stay tuned... in the meantime we've added a new Live Reload guide in the Capacitor docs. |
Beta Was this translation helpful? Give feedback.
Live-reload is achieved with several tools working together. Capacitor does its part by offering a way to set the Web View URL (see the docs), but you need an actual server running your app. Many Framework CLIs offer this capability, but don't integrate with Capacitor. That's where the Ionic CLI can be helpful, because it offers
ionic cap run <platform> --livereload
(see the live-reload docs for Ionic).cordova run <platform>
doesn't quite get you all the way because you still need a dev server running, too. If you're asking for a way to build and deploy your app to a device in the terminal, Capacitor doesn't have that feature, but stay tuned... 😉