Black screen after splash screen on android only with livereload -l or console -c


#1

Hi, I’m getting a black screen after the splash screen when running my app on android device with livereload -l or console -c. The simple
ionic cordova run android
command works fine.

Anyone an idea about this? Thanks!


#2

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android Look at the console and network tabs for errors.

What is your ionic info output?


#3

My
ionic info
output is:

  @ionic/cli-utils  : 1.13.1
    ionic (Ionic CLI) : 3.13.2

global packages:

    cordova (Cordova CLI) : 7.0.1

local packages:

    @ionic/app-scripts : 1.3.7
    Cordova Platforms  : android 6.2.3
    Ionic Framework    : ionic-angular 3.3.0

System:

    Android SDK Tools : 26.0.2
    Node              : v6.10.3
    npm               : 3.10.10
    OS                : Windows 10

Misc:

    backend : legacy

#4

This is old, you should upgrade.


#5

Thanks, this did the trick!
I updated with
npm install @ionic/app-scripts@latest --save-dev

and then had to add

<!-- all code from node_modules directory is here -->
  <script src="build/vendor.js"></script>

to src/index.html because I got
uncaught ReferenceError: webpackJsonp is not defined