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.

bug: SplashScreen won't hide manually

See original GitHub issue

Bug Report

Capacitor Version

npx cap doctor output: 1.3.0

Affected Platform(s)

  • Android
  • iOS
  • Electron
  • Web

Current Behavior

SplashScreen.hide() won’t hide the splashscreen.

Expected Behavior

The splash screen should hide when splashscreen.hide() is called and when launchAutoHide: false

Sample Code or Sample Application Repo

https://github.com/ionic-team/ionic-stencil-conference-app “plugins”: { “SplashScreen”: { “launchAutoHide”: false, “showSpinner”: false } }

Reproduction Steps

Pull down the ionic stencil conference app, add the below code code to the capacitor.config.json file, and then run the ios app and notice the SplashScreen won’t hide when SplashScreen.hide() is called in the app-root.tsx “plugins”: { “SplashScreen”: { “launchAutoHide”: false, “showSpinner”: false } }

Other Technical Details

npm --version output: 6.9.0

node --version output: 10.16.0

pod --version output (iOS issues only): 1.8.4

Other Information

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
peterpeterparkercommented, Dec 31, 2019

same to me because I used the auto-import of Webstorm which imported “only” Splashscreen as I didn’t typed Plugins

await SplashScreen.hide()

-> auto-import ->

import {SplashScreen} from '@capacitor/core';

which doesn’t produce any compilation error but is incorrect. correct should be:

import { Plugins } from '@capacitor/core';
const { SplashScreen } = Plugins;
0reactions
ionitron-bot[bot]commented, Nov 10, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Splash Screen won't hide - Stack Overflow
I'm trying to add a SplashScreen to my Application but i'm facing an issue: The SplashScreen loads and just that... it doesn't take...
Read more >
Windows 10 Taskbar Won't Hide - Solved [7 Ways To Fix It]
Click on the “Start” button and navigate to settings. Look for the taskbar settings and open taskbar settings. Scroll down the screen further ......
Read more >
Splash screens - Android Developers
Either the app triggers onResume() or the splash screen times out automatically so make sure the motion can be comfortably skipped. The splash...
Read more >
A Comprehensive Guide to Android 12's Splash Screen API
By default all apps on Android 12 will show a splash screen with the app icon at the centre. Sounds great until you...
Read more >
Splash Screen - Apache Cordova
For other platforms, check the cordova-plugin-splashscreen for support. ... when manually showing/hiding the splash screen in your application's code:.
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