Problem with splashscreen and cordova-ios 6.0.0
See original GitHub issueBug Report
Problem
The version 6.0.0 of cordova-ios integrates the splashscreen plugin. Accordingly, the team of cordova-plugin-splashscreen removed the support of this version with the latest version of the plugin.
With that in mind I decided to update cordova-ios to version 6.0.0, but the integrated splashscreen does not work the same way as the plugin one.
What is expected to happen?
The splashscreen should be displayed the same way as before.
What does actually happen?
The splash screen is hidden very quickly, it does not use the settings of the config.xml file. It is hidden even if the AutoHideSplashScreen option is set to false, and the SplashScreenDelay option does not change the delay.
Information
I looked at the CDVViewController.m file file with the Xcode debugger, and it seems that the options of the config.xml file are correctly interpreted, but it does not change nothing.
Moreover when I call the navigator.splashscreen.hide()
function, the splashscreen is not displayed and I cannot click on the screen anymore.
Some people from the splashscreen plugin team seem to have spotted the same problem.
Environment, Platform, Device
I use Xcode 11.4 and an IPhone 6S with iOS 13.5.
Version information
I use cordova-ios 6.0.0.
Checklist
- I searched for existing GitHub issues
- I updated all Cordova tooling to most recent version
- I included all the necessary information above
Issue Analytics
- State:
- Created 3 years ago
- Reactions:16
- Comments:5 (1 by maintainers)
Top GitHub Comments
@dpogue thank you very much for looking at it. It looks to me like the issue is not only the LaunchScreen storyboard background color. It looks to me like the splash screen image that should be loaded in its image container is not being loaded. I tried the changes in your PR and what I see in that case is that now the view is visible but it doesn’t have the image loaded on it.
Ahhhh okay, I know what’s happening here: The splashscreen will use the
BackgroundColor
preference configured in config.xml. If that is not configured, it will be transparent.I will open a PR in the next few days to make it default to white.