Platform.ready() never fires in ios device


I have a problem with the launch of my app on ios device.
The application stucks on splashscreen. I try to call the Splashcreen.hide() but the application never arrive to this part of the code.

constructor(platform: Platform) {
    platform.ready().then(() => {

Xcode output:
-Multi-tasking -> Device: YES, App: YES
-Using UIWebView
-[CDVTimer][handleopenurl] 0.418961ms
-[CDVTimer][intentandnavigationfilter] 11.277974ms
-[CDVTimer][gesturehandler] 0.371039ms
-[CDVTimer][splashscreen] 44.393003ms
-[CDVTimer][googlemaps] 9.078979ms
-[CDVTimer][statusbar] 29.884040ms
-[CDVTimer][keyboard] 8.678019ms
-[CDVTimer][TotalPluginStartup] 108.307958ms
-Resetting plugins due to page load.
-Finished load of: file:///var/containers/Bundle/Application/730B8CD3-C1AC-462A-950F-FF772C3E1A72/
-THREAD WARNING: [‘Device’] took ‘36.698242’ ms. Plugin should use a background thread.

Everything works fine on android device or ios simulator

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.36
ios-deploy version: 1.9.0 
ios-sim version: 5.0.13 
OS: OS X El Capitan
Node Version: v6.9.1
Xcode version: Xcode 8.2 Build version 8C38

Installed platforms:
ios 4.3.1

Plugins installed:
com.googlemaps.ios 2.1.1 "Google Maps SDK for iOS"
cordova-plugin-camera 2.3.1 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-googlemaps 1.4.0 "phonegap-googlemaps-plugin"
cordova-plugin-network-information 1.3.1 "Network Information"
cordova-plugin-splashscreen 4.0.1 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-sqlite-storage 2.0.1 "Cordova sqlite storage plugin"
cordova.plugins.diagnostic 3.3.2 "Diagnostic"
ionic-plugin-keyboard 2.2.1 “Keyboard”

Anyone knows how to resolve this issue?


Where are you importing the Platform provider from? You have to make sure you import it from the ionic-angular lib:
import { Platform } from 'ionic-angular';

EDIT: Now that I think about it, that shouldn’t be the issue, since it works on simulators. Worth checking anyway.


Platform provider is already added, but still not working.

import { Nav, Platform, MenuController } from 'ionic-angular';