-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: ionic capacitor run android --livereload
is not rebuilding the app
#4126
Comments
Any update on this ? [ng] 103 unchanged chunks
[ng] chunk {tab2-tab2-module} tab2-tab2-module.js, tab2-tab2-module.js.map (tab2-tab2-module) 4.58 kB [rendered]
[ng] Time: 1082ms
[ng] ℹ 「wdm」: Compiled successfully. |
@WesleyGoncalves @brospars While running |
@dwieeb It adds the server url {
"appId": "io.ionic.blabla",
"appName": "blabla-app",
"bundledWebRuntime": false,
"npmClient": "npm",
"webDir": "www",
"server": {
"url": "http://localhost:8100"
}
} Edit : I've just noticed that even if I rebuild the app in android studio it doesn't update, I have to run without livereload |
|
@alext0101 Just adding my address worked, thank you ! Maybe, this should be added in the documentation |
@brospars, how can we add this to the documentation? |
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 We could also say that |
Yes this should be documented ! I was stuck for almost a day on this ! |
I got it working with the |
Don't need to put our PC's address. Just do
It should get your app running :) |
Battled this for several hours before coming across this issue. I finally got livereload to work on android by following the steps above from @brospars with a slight tweak to step 3. Instead of
I replaced So step 3 is
When I omit the host(previously address), I get an error saying ERROR_ADDRESS_UNREACHABLE |
Is there a reason the livereload option doesn't run with |
I was facing the similar issue for one of my react-ionic based capacitor project. This was fixed by adding server: {} in
This works for me, hope works for others too!! |
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
, thenionic capacitor copy android
orionic capacitor run android -l
, and then run the app in Android Studio.The text was updated successfully, but these errors were encountered: