0

I have a react webapp, which I loads in to an Android app via Web view. In my app, during the rendering, I call following line, which runs a custom method in the Android app.

document.location = 'app:flow:updateModel';

At the end of the method in Android component(which is instantly executed), it created an event that will invoke the web app to continue rendering.

When I ran my app locally and loaded it into my android app in simulator, I am noticing that hot reloading is not working. Hot reloading works fine if I remove the above mentioned line and continue rendering there without calling document.location='...'

I am noticing the web socket tunnel is created during the startup (wss://10.0.2.2:3000/ws) and messages are received there whenever I am saving my changes. However, they do not get applied. Any idea on how I can get this to working?

Chamila Wijayarathna
  • 1,815
  • 5
  • 30
  • 54

0 Answers0