You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Splash Screen plugin: The method show returns a promise which resolves after the splash screen is shown. If it's called with no parameters, the promise resolves, but if it's called with some parameters, the promise never resolves.
I also tried the callback, but it was never called.
async show(): Promise<void> {
await SplashScreen.show({
autoHide: false,
fadeInDuration: 0,
});
console.log('Showing splash...'); // THIS LINE IS NEVER EXECUTED
}
but if we remove the options:
async show(): Promise<void> {
await SplashScreen.show();
console.log('Showing splash...'); // THIS LINE IS EXECUTED
}
sergiomilici
changed the title
SplashScreen: Splash.show promise never resolves when SplashScreenShowOptions are provided
bug: SplashScreen: Splash.show promise never resolves when SplashScreenShowOptions are provided
Jun 23, 2020
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.
Bug Report
Splash Screen plugin: The method
show
returns a promise which resolves after the splash screen is shown. If it's called with no parameters, the promise resolves, but if it's called with some parameters, the promise never resolves.I also tried the callback, but it was never called.
Capacitor Version
Platform(s)
This is happening on
android
&ios
Current Behavior
The following code shows the problem:
but if we remove the options:
Expected Behavior
The promise returned by SplasScreen resolves.
Other Technical Details
Ionic Info
Additional Context
Nothing really special. Just call the
show
method with options and wait for the promise to be resolved.The text was updated successfully, but these errors were encountered: