I cannot get my live reload to work on my android device. I tried setting up my phone to be on the same wifi, used the --lc flag, tried to use the --livereload-host flag, tried to add to my config xml several flags for origin=* and changing my content src=“the_dev_server_ip”, and various other things.
I really need to be able to test native plugins in real time. What do I need to do to get my live reload to work? What info do you guys need me to give you so I can accomplish this?
When using livereload you cant do that through USB. You have to connect your phone to the same network as your computer that serves - where ionic serve/run are running.
I am connected to the same public wifi, but on my Mac how do I connect to the same network?
I am trying to test the app natively so I can run the native plugins but use live reload so I can develop as quickly as possible. However, I also need to be able to avoid CORS errors which is why I have been trying to use the app on my device but still have the live reload. How do I do this?
Now it works fine only on chrome, when trying it on an actual android device it gives "the connection to the server was unsuccessful (file:///android_asset/www/index.html)
In my case I compile apps via Adobe Build copying www folder.
May this have something to do with main.dev.ts and main.prod.ts ?
Ionic Team please help us.
I spent a lot of time to refactor my app from beta to rc, it would be really frustrating if I had to get back to beta because I’m not able to run it on actual device
Ok, at least for my case I found the problem and the solution.
The app is pretty fast (as it was beta 11) once loaded, but it’s incredibly SLOW while loading (25 seconds to load on a Galaxy J1 2016 !!!) and it exceeds default android timeout.