Ionic cap run android -l --external seems to require ssl flag

Following the guide for Rapid App Development with Live Reload, I tried to test it on a android version 9 device.
The app showed an error (CLEARTEXT not allowed).

Rerunning with --ssl fixed the issue.

Now the --ssl flag is shown to be experimental, so in short should we use it always from now on, or is there an alternative solution?
Thanks,

hey there, some good news. We’ve made this much simpler to work with new releases to both the Ionic CLI and Capacitor. Basically, allows cleartext on localhost, aka where live reload runs:

npm i -g @ionic/cli

and in your Capacitor project:

npm update @capacitor/cli
npm update @capacitor/core

then try live reload again:

ionic cap run android -l --external

1 Like