I’ve started creating an application with Ionic 2. While developing I just used
ionic serve and everything works fine.
When I wanted to test the app on a mobile device, I ran into some problems:
- When running the app on an (Android) emulator (
ionic emulate), I get an application error: “The connection to the server was unsuccessful (http://my.local.IP.address:8100)”. I don’t get any errors in the console.
- I then tried to upload the application to Ionic View (
ionic upload), but I just get a black screen when running the app there.
- My latest attempt was running the app directly on my phone (Android) with (
ionic run). This worked.
Does anyone know what causes my application not to work on some platforms?