Like ionic cordova run ios -l, but for Capacitor!
馃摑 Set appUrl in capacitor.config.json for live-reload: https://github.com/ionic-team/capacitor/issues/366 & https://github.com/ionic-team/capacitor/commit/9b89f096e8eca1f7ef761c4f1cc3be2e7c16ab9b
Status of this issue is somehow unclear. Is it possible to add live-reload functionality to the Capacitor right now or no?
Perhaps the "enhancement" label will help.
It is not possible yet. Subscribe to this issue for updates.
In the meantime here is the description we wrote for our project on how to use live-reload:
ionic serve capacitor.config.jsoncap sync ios and tehn cap open iosServer config for capacitor:
"server": {
"url": "http://[Your IP here]:8100"
}
Hopefully it helps someone while we are waiting for awesome cli support.
Thanks @HoverBaum! Those are the exact steps we hope to automate. I was working on this yesterday but ran into some issues with Capacitor misidentifying ios/android as web due to the livereload server. Hoping to resolve this shortly!
Does it work now, the documentation still says no but github says closed :)
@darklinki Yes, it should work. Can you link to the documentation you're seeing?
@dwieeb - This is the documentation @darklinki was reffering to
Oops! Thanks @linus1412!!
Most helpful comment
In the meantime here is the description we wrote for our project on how to use live-reload:
ionic servecapacitor.config.jsoncap sync iosand tehncap open iosServer config for capacitor:
Hopefully it helps someone while we are waiting for awesome cli support.