While trying to run my ionic app on android device, “ionic run android” and “ionic run android -l”, commands show completely different behavior.
ionic run android -l
This runs as expected, splashscreen works just fine and images are displayed where they should. Other cordova plugins like “$cordovaNetwork” work just fine as well.
However, if I run
ionic run android
(notice the missing ‘-l’ argument) on the same app, splashscreen gets stuck at .hide(). Even the images are not rendered and instead image-not-found(that broken screen icon) shows up. So the generated apk is useless.
I know I’m doing something stupid, but can’t figure out what. I’m pulling my hair over this issue, because it doesn’t make any sense. Any help will be greatly appreciated.
The live reload functionality is similar to ionic serve, but instead of developing and debugging an app using a standard browser, the compiled hybrid app itself is watching for any changes to its files and reloading the app when needed. This reduces the requirement to constantly rebuild the app for small changes.
Execute this command on terminal " adb kill-server"
Now connect device to system wait, 10-20 seconds.
Execute this command on terminal " adb start-server",
Check device status with "adb devices " command.