-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Splashscreen blinks on hide and Icon zoomed (Android 12+ API 32+) #1514
Comments
I suspect this is related to the same cause as I have experienced in #1501 (comment) On Android 12+, there is a |
Have you tried
in |
@nijakobius tried. This doesn't helps. |
What exactly happens? Does the blinking occur after the 3000ms delay? To make it clearer try 10000ms |
@nijakobius a very bad practice and must be fixed in correct way. |
@roman-rr Sure but understanding what is happening and when it's happening helps fixing it in the correct way, thus the question :) |
@nijakobius thank you. In case. just tried 25000ms timeout and still same blink. |
This is quite annoying. Anyone figured out a way to stop the blinking? Nothing of the above works for me, including messing with |
Hi, In config.xml :
Kr. |
@TiBz0u It seems to work fine with a standard .png image. But when using an animated-vector (.xml) file i always get the blinking. But hey, i am just using a standard .png image for now, as you also wrote above. Cheers! |
I too is using an rasterized PNG image instead of an animated vector file and don't see the flash, so far I think we have isolated the issue to animated vectors. |
Just in case: Blinks reproduced within
|
Looks like Android bug to me, After a month of searching I still coudn't find answer. Another example of blinking (https://user-images.githubusercontent.com/87377447/199126503-75637705-895f-47a1-985c-b14a4c5ba068.mp4) Also Animated Vector Drawable fadeOut bug It has something to do with setting image to alpha 1f before animating it to alpha 0, if you see code where splashImage has something like this:
Following by
You need to calculate the remaining alpha, you can't just set 1, similar to this code for calculating remaining duration (this code example is not for calculating remaining alpha):
https://developer.android.com/develop/ui/views/launch/splash-screen This bug is for Android 12.0+ |
For some reason I can't reproduce this blinks on real device with following configuration:
But other configurations will give me a blinks on real device to. |
Bug Report
Problem
Splashscreen suddenly blinks before hide on device 32 API
Steps to reproduce
Simply create and launch few times clear cordova app with
cordova-android@11
Information
Environment, Platform, Device
MacOS
Ventura 13.0
Simulator
Pixel 4 XL API 32
Version information
Checklist
The text was updated successfully, but these errors were encountered: