question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with splashscreen and cordova-ios 6.0.0

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Reactions:16
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ajberasateguicommented, Jun 10, 2020

@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.

0reactions
dpoguecommented, Jun 9, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cordova ios 6.0.0 not showing splash screen images
In case anyone has the same issue, I resolved this by erasing the simulator content. Simulator > Hardware > Erase all content and...
Read more >
Splash Screen Plugin Released! - Apache Cordova
We are happy to announce that we have just released an update to our Splash Screen plugin! cordova-plugin-splashscreen@6.0.0Release ...
Read more >
cordova-plugin-splashscreen - npm
This plugin displays and hides a splash screen while your web application is launching. Using its methods you can also show and hide...
Read more >
Cordova-ios 6.0.0 builds - Questions - Framework7 Forum
If app doesn't pass the splash screen then i assume here could be some JS runtime error. Try debugging via Safari dev tools,...
Read more >
[Solved] Ionic V1 + cordova iOS 6.1.1 => Cannot launch on ...
I'm having issue after upgrade cordova iOS to 6.1.1 for iOS 14. The reason why I upgrade to cordova iOS 6.1.1 is because...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found