capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

Live Reload Option

Open Lucaszw opened this issue 4 years ago • 4 comments

It would be nice to have something similar to the live reload option for capacitor for native code changes

https://ionicframework.com/docs/cli/commands/capacitor-run

Lucaszw avatar Jul 09 '21 20:07 Lucaszw

This is next thing we are working on. There's a couple ways it could be done today with npm-run-all in combination with some capacitor commands which would sort of work but there's a cleaner way to handle this we're exploring.

NathanWalker avatar Jul 10 '21 16:07 NathanWalker

Ah nice!! Glad to hear. Will ne an awesome bonus to the debug experience!

Lucaszw avatar Jul 10 '21 17:07 Lucaszw

It's September 2023, still in progress even after 2 years. What's the state of this issue now?

Syed-Sheharyar avatar Sep 30 '23 13:09 Syed-Sheharyar

Hi @Syed-Sheharyar I must agree this is considered critical for this integration to be best it can be. The current Capacitor integration needs a better "embed" handling of the runtime - the current iteration allows it to work but I'm personally striving for something much better. We've been working on a project past couple months which is directly related to the "embed" handling to make this integration better:

  • iOS Cocoapod handling is bit heavy - the improved "embed" would go through SPM (Swift Package Manager) and have smaller footprint for handling
  • Android include is way too large right now with a footprint that is not desirable. The improved "embed" for Android reduces it down to vastly smaller footprint.
  • Lastly, both "embed" improvements also bring along a proper live sync with the host app it's embedded into.

NativeScript, being an open source community driven project, is influenced largely by community desire/need. The more the community asks for better Capacitor integration, the more the working group can prioritize it so really appreciate your ping here.

NathanWalker avatar Sep 30 '23 16:09 NathanWalker