I updated my app’s packages, and since then, when I try to run it on a real device with ionic cap run android --prod --open -l --external it launches correctly, but the changes aren’t detected (or the device doesn’t reload as expected).
When I try to open it in a browser, it works as expected: the changes are detected and the page reloads.
In fact, it seems that the live reload mode isn’t working when I compile on a real device, whereas it used to work.
Is anyone else experiencing the same problem? Perhaps you’ve found a solution?
I used the flag --prod last month without any issue but since the new updates, it does not work correctly.
(I mainly use the production environment, but sometimes I use staging to implement new features or to debug. This is why I use it).
I’m trying to debug but I’m also asking here if anyone has any idea that can help me identify and fix this issue
I used a capacitor.config.ts file in which I had all the settings (including the server settings).
When I launched the live reload on external mode, the configs for the server was added in a new and empty capacitor.config.json that take the lead for this feature.
So I have deleted the typescript version and I use now the json file.
After that it worked properly again
This is strange because, I have switch to typescript version previous following the advice of ionic/capacitor.