diff --git a/CordovaLib/Classes/Public/CDVViewController.m b/CordovaLib/Classes/Public/CDVViewController.m index 0d7eb8b7b..10cccf44c 100644 --- a/CordovaLib/Classes/Public/CDVViewController.m +++ b/CordovaLib/Classes/Public/CDVViewController.m @@ -517,6 +517,12 @@ - (UIView*)newCordovaViewWithFrame:(CGRect)bounds - (void)createLaunchView { + // (#929) Per Cordova documentation, don't instantiate the splash screen + // if SplashScreenDelay and FadeSplashScreenDuration are both zero... + CGFloat splashScreenDelay = [self.settings cordovaFloatSettingForKey:@"SplashScreenDelay" defaultValue:0]; + CGFloat fadeSplashScreenDuration = [self.settings cordovaFloatSettingForKey:@"FadeSplashScreenDuration" defaultValue:250]; + if (splashScreenDelay == 0 && fadeSplashScreenDuration == 0) {return;} + CGRect webViewBounds = self.view.bounds; webViewBounds.origin = self.view.bounds.origin;