From 8d2fd2300582c10079b962feaca98ac8545f7983 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Tue, 7 Oct 2014 17:22:27 -0700 Subject: [PATCH] Hide the splash screen only after the plugins and page is loaded --- packages/meteor/startup_client.js | 5 +++++ tools/commands-cordova.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/meteor/startup_client.js b/packages/meteor/startup_client.js index 7c88ee434e..d52d52f205 100644 --- a/packages/meteor/startup_client.js +++ b/packages/meteor/startup_client.js @@ -8,6 +8,11 @@ var ready = function() { if (awaitingEventsCount > 0) return; + // XXX hide the splash screen if such exists, only on mobile + if (Meteor.isCordova) { + navigator.splashscree && navigator.splashscreen.hide(); + } + loaded = true; while (queue.length) (queue.shift())(); diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index e15239a6c2..e7094e4aa4 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -1225,7 +1225,8 @@ var consumeControlFile = function (controlFilePath, cordovaPath) { // set some defaults different from the Phonegap/Cordova defaults var additionalConfiguration = { 'webviewbounce': false, - 'DisallowOverscroll': true + 'DisallowOverscroll': true, + 'AutoHideSplashScreen': false }; var imagePaths = { icon: {},