kanongil commented on a change in pull request #790:
URL: https://github.com/apache/cordova-ios/pull/790#discussion_r439379483
##########
File path: CordovaLib/Classes/Public/CDVViewController.m
##########
@@ -729,6 +760,43 @@ -
(void)onAppDidEnterBackground:(NSNotification*)notification
[self.commandDelegate evalJs:@"cordova.fireDocumentEvent('pause', null,
true);" scheduledOnRunLoop:NO];
}
+/**
+ Show the webview and fade out the intermediary view
+ This is to prevent the flashing of the mainViewController
+ */
+- (void)onWebViewPageDidLoad:(NSNotification*)notification
+{
+ self.webView.hidden = NO;
+
+ if ([self.settings cordovaBoolSettingForKey:@"AutoHideSplashScreen"
defaultValue:YES]) {
+ [self showLaunchScreen:NO];
+ }
+}
+
+/**
+ Method to be called from the plugin JavaScript to show or hide the launch
screen.
+ */
+- (void)showLaunchScreen:(BOOL)visible
Review comment:
This method delays showing the splash screen by `SplashScreenDelay` ms
when `visible = YES`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]