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.

Calling `navigator.splashscreen.hide()` does not hide the splashscreen

See original GitHub issue

Bug Report

Problem

What is expected to happen?

Hiding the splashscreen by calling navigator.splashscreen.hide().

What does actually happen?

Its not hiding the splashscreen.

Information

Config

<?xml version='1.0' encoding='utf-8'?>
<widget id="..." version="...">
    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="AutoHideSplashScreen" value="false" />
</widget>

Version information

  • cordova 9.0.0 (cordova-lib 9.0.1)
  • cordova-ios 6.1.0
  • cordova-plugin-splashscreen 5.0.4
  • cordova-android 8.1.0
  • cordova-plugin-inappbrowser 4.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
  • Comments:7

github_iconTop GitHub Comments

3reactions
FireLizardcommented, Jun 26, 2020

I can not tell why but after removing an reinstalling cordova-ios and splashscreen-plugin it works now:

$ cordova platform remove ios

$ cordova plugin remove cordova-plugin-splashscreen

$ rm -rf platforms/ plugins/

$ cordova platform add ios@^6.1.0
Using cordova-fetch for cordova-ios@^6.1.0
Adding ios project...
Creating Cordova project for the iOS platform:
        Path: platforms/ios
        Package: com.example.app
        Name: My App
iOS project created with cordova-ios@6.1.0
Installing "cordova-plugin-file" for ios
Installing "cordova-plugin-whitelist" for ios

$ cordova plugin add cordova-plugin-splashscreen
Unmet project requirements for latest version of cordova-plugin-splashscreen:
    cordova-ios (6.1.0 in project, <6.0.0 required)
Current project does not satisfy the engine requirements specified by any version of cordova-plugin-splashscreen. Fetching latest version of plugin anyway (may be incompatible)
Installing "cordova-plugin-splashscreen" for ios
Plugin doesn't support this project's cordova-ios version. cordova-ios: 6.1.0, failed version requirement: <6.0.0
Skipping 'cordova-plugin-splashscreen' for ios
Adding cordova-plugin-splashscreen to package.json
0reactions
jptrainorcommented, Jun 9, 2021

Here is the key point: “… you don’t need the cordova-plugin-splashscreen since it’s added to cordova-ios since 6.0.0”.

Removing the old plugin fixed this for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

navigator.splashscreen.hide() not working on cordova-android ...
I use AutoHideSplashScreen = false so that I can hide the splash screen after the UI is rendered. This works fine on iOS...
Read more >
splashscreen.hide - Apache Cordova
Dismiss the splash screen. navigator.splashscreen.hide();. Description. This method dismisses the application's splash screen. Supported Platforms.
Read more >
cordova-plugin-splashscreen - Git at Google
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-plugin-splashscreen on CocoaPods.org
Note: Extended splashscreen does not require the plugin on Windows (as opposed ... setTimeout(function () { navigator.splashscreen.hide(); }, splashDuration ...
Read more >
cordova-plugin-splashscreen - npm
Using its methods you can also show and hide the splash screen manually. ... Note: Extended splashscreen does not require the plugin on ......
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