-
Notifications
You must be signed in to change notification settings - Fork 604
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
splash-screen: fadeOutDuration not working on Android #1322
Comments
This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue. Please see the Contributing Guide for how to create a Code Reproduction. Thanks! |
The code is literally just
The app can be completely devoid of any other content, since this is just about the fade animation to hide the SplashScreen. Should be reproducible in ANY app you may have lying around. Just paste in the command and delete everything else :) |
This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue. Please see the Contributing Guide for how to create a Code Reproduction. Thanks! |
Same issue. Start splash does not respect the Or we need to add Here is a repo: https://github.com/digaus/keyboard-demo Note that fadeout should take 5 seconds but it takes just 200ms |
I have the same, this is really crucial for initial user impression when opening an app for the first time. |
On SDK 33 there would be an easy fix by using a global variable for storing the fadeOutDuration and make hide to overwrite the value, but on previous versions the initial value gets retained when declared instead of getting the current value when it's being used. Refactoring is not going to work neither, if the animation listener is moved elsewhere, then it creates two new issues.
So I think best option would be to add a new |
Good to know where our flickering come from :) then this is the same issue we have. And I thought I made a misstake somewhere. |
Happy new year :) Yeah thats what I currently also did locally. Maybe also completely remove the animation when it is set to 0 ? |
can you give #1393 a try? |
I just tested it and with setting launchFadeDuration to 0, the initial flickering is gone (using avd file, but with static content)! Thank you very much! Is it possible for you to create a nightly release in npm? |
This does not solve the issue with Animated Vector Drawable. Looks like an Android bug. References: |
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 the plugin, please create a new issue and ensure the template is fully filled out. |
Bug Report
Plugin(s)
@capacitor/[email protected]
Capacitor Version
Platform(s)
Android (all Versions).
Current Behavior
When I use
Capacitor.Plugins.SplashScreen.hide({fadeOutDuration: 6000});
the SplashScreen disappears immediately, possibly with a very short fade.Expected Behavior
The SplashScreen should be fading out over 6 seconds.
Or, if this is not possible on Android, the docs should mention that
fadeOutDuration
is iOS-only: https://capacitorjs.com/docs/apis/splash-screenThe text was updated successfully, but these errors were encountered: