Android Studio Live Reload not working #4123
-
I'm testing out Capacitor 3.0 and I'm having trouble getting Android Studio live reload to work properly. My
I have run both Live reload works perfectly in Xcode, but when launching my app on Android Studio it's running the production build rather than the one running at |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Is it writing the |
Beta Was this translation helpful? Give feedback.
-
Are you testing on real devices or simulators? So, on iOS simulator it works because the simulator runs on the same machine as the server (your computer)
On real devices it won't work because the server is running in the computer and "localhost" is "this device", so fails because you don't have a server running on the real device. In those cases, you should use the local network IP (if the devices are on the same network), something like |
Beta Was this translation helpful? Give feedback.
Are you testing on real devices or simulators?
http://localhost:3000
means "this computer on port 3000"So, on iOS simulator it works because the simulator runs on the same machine as the server (your computer)
On Android emulator it won't work because it's behind a virtual router/firewall
On real devices it won't work because the serv…