Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: (android) SplashScreen.show not resolving promise if splash is already being shown #3261

Closed
sergiomilici opened this issue Jul 14, 2020 · 1 comment · Fixed by #3262
Closed

Comments

@sergiomilici
Copy link
Contributor

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 2.2.1
  @capacitor/core: 2.2.1
  @capacitor/android: 2.2.1
  @capacitor/electron: 2.2.1
  @capacitor/ios: 2.2.1

Installed Dependencies:

  @capacitor/cli 2.2.1
  @capacitor/ios 2.2.1
  @capacitor/android 2.2.1
  @capacitor/core 2.2.1
  @capacitor/electron not installed

[success] Android looking great! 👌
  Found 3 Capacitor plugins for ios:
    capacitor-firebase-auth (2.2.1)
    cordova-plugin-calendar (5.1.5)
    cordova-plugin-geolocation (4.0.2)
[success] iOS looking great! 👌

Platform(s)

Android

Current Behavior

On Android, calling the method SplashScreen.show() never resolves the returned promise if the splash screen is already being shown.

Expected Behavior

The promise is resolved if the splash is being shown or not.

Code Reproduction

async function showSplash(){
    await SplashScreen.show({autohide:false});
    console.log('This is printed'); 
    await SplashScreen.show({autohide:false}); // Waiting here to resolve the promise
    console.log('This is NOT printed'); 
}

Other Technical Details

npm --version output: 6.14.5

node --version output: v12.13.0

pod --version output (iOS issues only): It doesn't apply for ios.

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 11, 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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants