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

App icon flashes before boot_splash on Android #95131

Closed
EiTaNBaRiBoA opened this issue Aug 4, 2024 · 13 comments
Closed

App icon flashes before boot_splash on Android #95131

EiTaNBaRiBoA opened this issue Aug 4, 2024 · 13 comments

Comments

@EiTaNBaRiBoA
Copy link

EiTaNBaRiBoA commented Aug 4, 2024

Tested versions

  • Reproducible on Godot 4.3.RC2

System information

Windows 10 - Godot v4.3.RC2 - Forward+

Issue description

When exporting a Godot project to Android, a brief but noticeable flash of the app icon occurs before the intended boot splash (image or color set in Project Settings -> Application -> Boot Splash) is displayed. This Brief icon display cannot be hidden or replaced using current Godot settings.

Reproduce.mp4

Steps to reproduce

  1. Create a new Godot project or use an existing one.
  2. Set a Boot Splash image or color: Go to Project Settings -> Application -> Boot Splash and either select an image or define a background color.
  3. Export the project for Android: Configure the export settings to android.
  4. Observe the app launch sequence: Pay close attention to the screen immediately after launching the app. You should briefly see the app icon displayed before the boot splash image/color appears.

Minimal reproduction project (MRP)

AppIcon.zip

@Calinou
Copy link
Member

Calinou commented Aug 4, 2024

What does your app icon look like before launching it? I believe the pre-launch icon is based on Android design assets; it is not drawn by Godot itself. This means that you need to configure your project to use assets you created for this purpose in the Android export preset in the Export dialog.

Godot can generate those assets for you if you leave the field empty, but you'll still need to define an icon at the very least.

@EiTaNBaRiBoA
Copy link
Author

EiTaNBaRiBoA commented Aug 4, 2024

What does your app icon look like before launching it? I believe the pre-launch icon is based on Android design assets; it is not drawn by Godot itself. This means that you need to configure your project to use assets you created for this purpose in the Android export preset in the Export dialog.

Godot can generate those assets for you if you leave the field empty, but you'll still need to define an icon at the very least.

I am not sure i understand what you mean, if you could explain. For your question the icon of the app is the godot icon svg. when launching the app, the expected result is to see the boot splash color (which the video example i set it to pink) but instead the app shows before the boot splash the icon of the app in the middle and this behaviour cannot be changed in godot project settings. If i open other apps on my phone they do not show their icon on launch

@Alex2782
Copy link
Contributor

Alex2782 commented Aug 6, 2024

How did you configure Icon?

If i open other apps on my phone they do not show their icon on launch

My Samsung Tab S7 (Android 13) shows the app icon in the splash screen first. (always, also other apps)

Bildschirmfoto 2024-08-06 um 18 39 43

Example: https://github.com/godotengine/godot-demo-projects/tree/master/2d/bullet_shower

Bildschirmfoto 2024-08-06 um 18 42 38

I am not sure i understand what you mean

I think this settings (Android Export)

image

@EiTaNBaRiBoA
Copy link
Author

EiTaNBaRiBoA commented Aug 10, 2024

How did you configure Icon?

If i open other apps on my phone they do not show their icon on launch

My Samsung Tab S7 (Android 13) shows the app icon in the splash screen first. (always, also other apps)

Bildschirmfoto 2024-08-06 um 18 39 43

Example: https://github.com/godotengine/godot-demo-projects/tree/master/2d/bullet_shower

Bildschirmfoto 2024-08-06 um 18 42 38

I am not sure i understand what you mean

I think this settings (Android Export)

image

Thanks for the suggestion, I tried setting the main icon to 192x192 in the android export settings, but the issue still remains. I still see the default icon briefly before the splash screen appears.

  1. I tested on Godot 4.2.2 and this issue doesn't occur.
  2. I opened the project using godot 4.2.2 and exported to my phone and launched it.
  3. No icon was displayed but only splash screen and the app.
  4. I closed the project and opened it in godot 4.3. i exported the app to my phone and the icon app was displayed before the splash screen.
  5. I also tried to make the project in godot 4.3 and exporting it to my phone and the app icon was displayed before the splash screen.

All were the same project settings and same export settings
Could this be a regression?

@Alex2782
Copy link
Contributor

Alex2782 commented Aug 10, 2024

I tried setting the main icon to 192x192 in the android export settings, but the issue still remains. I still see the default icon briefly before the splash screen appears.

maybe PR #92965

or/and Gradle Build? I have deactivated Gradle Build and configured an icon. It worked on Android 13 - Samsung.

Screenshot 2024-08-10 231159

image

godot-assets.svg

godot-assets

@EiTaNBaRiBoA
Copy link
Author

I tried setting the main icon to 192x192 in the android export settings, but the issue still remains. I still see the default icon briefly before the splash screen appears.

maybe PR #92965

or/and Gradle Build? I have deactivated Gradle Build and configured an icon. It worked on Android 13 - Samsung.

Screenshot 2024-08-10 231159

image

godot-assets.svg

Both godot 4.2.2 and godot 4.3 that i tested on the same project used the same export settings and project settings. Godot 4.3 did reproduce the issue and godot 4.2.2 didn't reproduce the issue

@akien-mga
Copy link
Member

AFAIK the fact that an icon is shown when starting the app is intended behavior from Android itself. Apps built against recent SDKs behave this way, while some (possibly older) apps don't.

Now regarding why it's the default Godot icon, did you change the main project icon in the project settings? In my tests my custom icon.svg would be shown on Android just fine.

CC @m4gr3d

@EiTaNBaRiBoA
Copy link
Author

AFAIK the fact that an icon is shown when starting the app is intended behavior from Android itself. Apps built against recent SDKs behave this way, while some (possibly older) apps don't.

Now regarding why it's the default Godot icon, did you change the main project icon in the project settings? In my tests my custom icon.svg would be shown on Android just fine.

CC @m4gr3d

Thanks for the reply, i know how to change the app icon and it wasn't part of the issue. The issue was opened due to what you said that the app icon shows before the display splash is due to the new sdk, do you think is it possible somehow to remove it or is it the new standard of android?

@Alex2782
Copy link
Contributor

Alex2782 commented Aug 12, 2024

@EiTaNBaRiBoA In your MRP Gradle Build is active, but you have not added the files to the zip file.

https://docs.godotengine.org/en/latest/tutorials/export/android_gradle_build.html
https://developer.android.com/develop/ui/views/launch/splash-screen?hl=en

I haven't tried it yet, but it should be possible if you customize files. You should be familiar with Android development.

screenshots

image

image

image

@m4gr3d
Copy link
Contributor

m4gr3d commented Aug 12, 2024

do you think is it possible somehow to remove it or is it the new standard of android?

@EiTaNBaRiBoA It's the new Android standard.

Starting in Android 12, the system applies the Android system default splash screen on cold and warm starts for all apps. By default, this system splash screen is constructed using your app's launcher icon element and the windowBackground of your theme, if it's a single color.

@QAQ-HYSJ
Copy link

QAQ-HYSJ commented Sep 2, 2024

Is it possible to disable the display of the app icon? when open the app or game, the app icon will be displayed first, then a gray drop-down animation will appear, then the boot splash appears, and finally the app will be entered, which is really ugly.

Screenrecorder-2024-08-27-16-42-46-159.mp4

@m4gr3d
Copy link
Contributor

m4gr3d commented Sep 2, 2024

No it's not possible to disable the app icon; as mentioned in the comment above this is the new Android standard.

@m4gr3d
Copy link
Contributor

m4gr3d commented Sep 2, 2024

Closing this issue as intended behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants