question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: `ionic capacitor run android --livereload` is not rebuilding the app

See original GitHub issue

Original issue by @WesleyGoncalves on 2019-08-19T02:04:10Z

The app is not being updated in the Android device after I make changes to it. The live reload is not working.

The app only gets updated if I run ng build, then ionic capacitor copy android or ionic capacitor run android -l, and then run the app in Android Studio.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

21reactions
alexdev888commented, Oct 2, 2019

@brospars

  1. Open android/app/src/main/AndroidManifest.xm

  2. Add this to your AndroidManifest.xml in the tag (Tag application already exists) <application android:usesCleartextTraffic="true">

  3. Run live reload with host of your PC ionic capacitor run android -l --address=192.168.2.106 INSTEAD OF 192.168.2.106 YOU PUT YOR PC’S ADDRESS

  4. After run Android Studio with connected device as usual

10reactions
mcelotticommented, Dec 4, 2019

We could update these pages :

The first one gives an example of live reload with cordova but not with capacitor and say it doesn’t work with localhost:8100 but you need to provide your host IP address.

We could also say that <application android:usesCleartextTraffic="true"> may be needed for API level > 28

I got it working with the <application android:usesCleartextTraffic="true"> and command ionic capacitor run android --livereload --external

Read more comments on GitHub >

github_iconTop Results From Across the Web

ionic4 - Capacitor livereload not working - Stack Overflow
ionic capacitor run ios --livereload --external. It will open Xcode automatically. Run your project and livereload should work.
Read more >
Ionic capacitor live reload not working on android
I am using the following command to perform live reloading on android ionic capacitor run android --livereload --external. But it is not ......
Read more >
Live Reload | Capacitor Documentation
Use Live Reload to easily debug the web and native portions of an app on a device ... Next, use the ionic cap...
Read more >
ionic capacitor v3 run android livereload Code Example
ionic capacitor v3 run android livereload ; 0. 0. Apollo1999 85 points. npm install -g @ionic/cli native-run ionic cap run android -l --external...
Read more >
Debugging Tips For Your Ionic App - Ionic Blog
Debugging Ionic apps is not always easy, as apps usually behave differently on the browser ... ionic cap run android --livereload --external.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found