Closed SivasubramanianG closed 3 years ago
I have the same issue.
I think this issue is describing the same issue at https://github.com/apache/cordova-ios/issues/991, fixed by https://github.com/apache/cordova-ios/pull/1006 & released in cordova-ios@6.2.0
.
I would try upgrading to cordova-ios@6.2.0
(coincidentally just released ~30 minutes ago). Let me know if this issue still persists or not.
Thank you, Norman
Thank you so much for the fix. Its working. Thanks you @breautek for the great support.
Thanks & Regards, Sivasubramanian G
Glad to hear, I'll close this ticket then.
Cheers!
Seems like this might have been closed prematurely, I'm on 6.2.0 and it's not working for me. There are a bunch of other people in https://github.com/apache/cordova-plugin-splashscreen/issues/307 with the same issue. That being said, I don't know where the issue resides, should this be reopened or is the problem with the other repo?
@breautek is there anything I can do to help debug this? Setting a breakpoint in the hide
method and calling navigator.splashscreen.hide()
, I see that the CDVSplashScreen instance has _visible = NO
and _destroyed=YES
before it even runs setVisible:NO
. But it's still showing, I tested on both a simulator and on a real device, both have Cordova-ios@6.2.0. I'm not familiar with iOS development, but would be happy to try to help out if you tell me where to look. Thanks.
Nevermind. Uninstalling and reinstalling cordova-ios
didn't do anything for me, but uninstalling and reinstalling the plugin seems to work fine:
cordova plugin rm cordova-plugin-splashscreen
cordova plugin add cordova-plugin-splashscreen@6
Nevermind. Uninstalling and reinstalling
cordova-ios
didn't do anything for me, but uninstalling and reinstalling the plugin seems to work fine:cordova plugin rm cordova-plugin-splashscreen cordova plugin add cordova-plugin-splashscreen@6
cordova-ios 6.2.0, and suddenly stop working, from 1 compilation to the next compilation, same code, same versions.
This was the final solution to me. Thanks adam.
Bug Report
Problem
This issue is started to occur after migrated to cordova-ios 6.0.0
What is expected to happen?
Splash screen automatically hides with no white screen after giving this.splashscreen.hide() in device ready function.
What does actually happen?
Splash screen is not manually hiding even after calling this.splashscreen.hide() in device ready function. Splash screen is not hiding without AutoHideSplashScreen set to true. If AutoHideSplashScreen is set to true in config.xml it does not hiding with this.splashscreen.hide(). It is hiding only when setting SplashScreenDelay" value="3000" in config.xml.
Information
Migrate cordova-ios ~5 to 6.0.0. Upgrade splash screen to 6.0.0 version.
Command or Code
in Config.xml
this.platform.ready().then(() => { this.splashscreen.hide(); }
in app.component.ts
Environment, Platform, Device
Ionic: Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 5.5.1 @angular-devkit/build-angular : 0.803.29 @angular-devkit/schematics : 8.1.3 @angular/cli : 8.3.29 @ionic/angular-toolkit : 2.3.3
Cordova: Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : ios 6.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 33 other plugins)
Utility: cordova-res : not installed native-run (update available: 1.3.0) : 0.3.0
System: ios-deploy : 1.11.3 ios-sim : 8.0.2 NodeJS : v12.18.3 (/usr/local/bin/node) npm : 6.14.6 OS : macOS Catalina Xcode : Xcode 12.2 Build version 12B45b
Version information
Checklist