SplashScreen loads forever

Hello everyone,

My system information:

Cordova CLI: 6.5.0 
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.1 
ios-sim version: 5.0.13 
OS: macOS Sierra
Node Version: v6.10.0
Xcode version: Xcode 8.3 Build version 8E162

I’m importing the splash screen to my app.components.ts using this code:
import { SplashScreen } from '@ionic-native/splash-screen';

My constructor function is the following

  constructor(public statusBar: StatusBar, public splashScreen: SplashScreen, public platform: Platform, public storage:Storage, public mainService:MainService) {
    platform.ready().then(() => {
      splashScreen.hide();
      statusBar.styleDefault();
    });
  }

I’m having a proxy in my ionic config file pointed to my api:

"proxies": [
	{
		"path": "/api",
		"proxyUrl": "[My api link here]"
	}
]

My SplashScreen Configuration:

config.xml
http://collabedit.com/8dw8t

My app works perfectly in browser, but once I run
ionic run android
The splash screen keeps loading forever.

  • I tried hiding splashscreen automatically from config.xml file, it disappeared, but my rootPage didn’t show up.
    Any ideas?

Thanks.