I have multiple plugins installed on my Ionic 3 app (see plugin list below for details). When I do a production build on android (ionic cordova run android --prod
) and start my app, the splashcreen shows for about 5-6 seconds, depending on the device. If I reduce the Splascreen delay in my config.xml
the splashscreen hides after this time and leaves a white screen.
Since the splashScreen.hide();
is called as soon as the platform.ready()
-event is triggered, my first thought was that the app needs this time to be loaded. However, 6-9 seconds is a veeeery long time for an app to load on a current smartphone. Compared to native apps which load in less than a second, this leads to a very bad UX.
Question 1: Is this a thing of Ionic in combination with the plugins? Or am I doing something wrong here?
Looking at the logs of my app, it says “Ionic Native: deviceready event fired after 2364 ms
”.
Question 2: How comes, that the deviceready event is fired after 2.3 seconds and the splascreen shows for 6-9 seconds? That doesn’t make any sense to me.
Note: On iOS the splashscreen shows barely 1 second on current devices.
Ionic info:
cli packages:
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.2
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.8.0
System:
Android SDK Tools : 25.2.5
Node : v8.2.1
npm : 5.5.1
OS : Windows 10
plugin list:
com.googlemaps.ios 2.5.0 "Google Maps SDK for iOS"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appminimize 1.0 "AppMinimize"
cordova-plugin-compat 1.0.0 "Compat"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-firebase-analytics 0.12.1 "FirebaseAnalyticsPlugin"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-googlemaps 2.1.1 "cordova-plugin-googlemaps"
cordova-plugin-googleplus 5.1.1 "Google SignIn"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-native-spinner 1.1.3 "Native Spinner"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-vibration 2.1.5 "Vibration"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-support-google-services 1.0.0 "cordova-support-google-services"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 2.0.0 "PushPlugin"