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

Wrong Boot Splash showing on Android. #73955

Closed
ondesic opened this issue Feb 25, 2023 · 22 comments
Closed

Wrong Boot Splash showing on Android. #73955

ondesic opened this issue Feb 25, 2023 · 22 comments

Comments

@ondesic
Copy link

ondesic commented Feb 25, 2023


Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.


Godot version

3.5.2 rc2

System information

Android

Issue description

First up, this is not the same issue or a duplicate of #49816.

On the desktop I have selected a Boot Splash image. Run the desktop version and the correct Boot Splash image will show properly.

Now run the same project on Android and instead of the Boot Splash image, the Godot Icon image becomes the Boot Splash. This occurs on all Android projects I have tested. In fact, whatever icon you assign to the android export becomes the splash image. They need to be the same

Steps to reproduce

Run demo project on desktop and notice the splash screen is correct, run on android and see the splash gets replaced by the godot icon image.

Minimal reproduction project

TestAndroidSplash.zip

@cengiz-pz
Copy link

This issue exists since version 3.4.? and is related to #62863

@cengiz-pz
Copy link

@clayjohn, @akien-mga, it seems that the splash screen mechanics changed with Android 12. Here is some info on how to migrate the existing splash implementation: https://developer.android.com/develop/ui/views/launch/splash-screen/migrate

@ondesic
Copy link
Author

ondesic commented Mar 22, 2023

I rely a lot on Godot to work cross platform. I don't know how to do this in Godot. It will require someone with more experience than me to fix this.

@YuriSizov
Copy link
Contributor

cc @m4gr3d

@m4gr3d
Copy link
Contributor

m4gr3d commented Mar 27, 2023

@ondesic Can you specify the Android version and the device make and model you're testing against.

@ondesic
Copy link
Author

ondesic commented Mar 27, 2023

Sure, Samsung Note 20 ultra running Android 13

@NianoTT
Copy link

NianoTT commented Apr 11, 2023

Can confirm for a few phones running Android 12 and 13.
The splash screen is replaced with the system default (enlarged app icon).

@hamzaydia
Copy link

I confirm that the bug still exist in v3.5.2 stable official, using android 12

@tung-nt-niteco
Copy link

I also have this problem with Godot 4.1, it is just a black screen, what is the solution? :)

@phil-hudson
Copy link
Contributor

Hey - did anyone find a solution to this? My splash screen loads quickly, disappears, then the app gets stuck at a black screen for a few seconds before showing the first scene.

I've tried to take a look in the debugger, but ideally need #70766 merged to enable autostart for profiling.

@tung-nt-niteco
Copy link

tung-nt-niteco commented Jan 26, 2024

Hey - did anyone find a solution to this? My splash screen loads quickly, disappears, then the app gets stuck at a black screen for a few seconds before showing the first scene.

@phil-hudson Your case can be solved by adding Start.tscn with only one TextureRect (there you display an image), use it as the first scene instead of Main.tscn, then this start scene will load Main.tscn with the following code:

func _ready():
#Stop a very short time to trigger UI changes
await get_tree().create_timer(0.2).timeout
get_tree().change_scene_to_file("res://src/Main.tscn")

Start.tscn is loaded very quickly, and regardless of how resource-intensive Main.tscn is, the first scene (Start.tscn) will remain until Main.tscn is fully loaded and switched to.

I used this technique for some of my Godot games, like this: https://play.google.com/store/apps/details?id=org.tung.movemaster2

Related discussion: #62863

@FPLCodes
Copy link

FPLCodes commented Feb 7, 2024

I am facing this same issue in 4.2.1.stable. I also have the same issue as this:

Hey - did anyone find a solution to this? My splash screen loads quickly, disappears, then the app gets stuck at a black screen for a few seconds before showing the first scene.

I've tried to take a look in the debugger, but ideally need #70766 merged to enable autostart for profiling.

I did exactly as @tung-nt-niteco said but I still face the same issue. Everything loads perfectly on windows but when trying it on android I am faced with this issue. I'm testing on Android version 12.

@ezequielleonzybert
Copy link

ezequielleonzybert commented Feb 7, 2024

Same issue with Godot 4.2.1, Android 13 / motorola g23. The boot splash is deactivated on project settings but when exporting as APK it is there

@cengiz-pz
Copy link

Hi @akien-mga, can we set the fix version to 4.4 for this one? It has been lingering for a long time.

@m4gr3d
Copy link
Contributor

m4gr3d commented Aug 17, 2024

@cengiz-pz This issue should have been addressed in 4.3 with #92965.

Are you still seeing the issue in Godot 4.3?

@cengiz-pz
Copy link

cengiz-pz commented Aug 20, 2024

Hi @m4gr3d, I have tested this issue with Godot 4.3 now & I am seeing two consecutive splash screens

  • the first one has the app logo at the center
  • the second one is the correct one from Project Settings

@m4gr3d
Copy link
Contributor

m4gr3d commented Aug 20, 2024

Hi @m4gr3d, I have tested this issue with Godot 4.3 now & I am seeing two consecutive splash screens

  • the first one has the app logo at the center
  • the second one is the correct one from Project Settings

@cengiz-pz that's the correct behavior! The first app logo is the new Android default behavior when starting an app (see https://developer.android.com/develop/ui/views/launch/splash-screen/migrate).

That is then followed by the Godot configured splash screen.

@cengiz-pz
Copy link

@m4gr3d
Copy link
Contributor

m4gr3d commented Aug 21, 2024

@m4gr3d, the first splash screen, which is the system default splash, should be customizable:

https://developer.android.com/develop/ui/views/launch/splash-screen#elements
https://developer.android.com/develop/ui/views/launch/splash-screen#implement

@cengiz-pz it's customizable, see the conversation in #92965 (comment)

@cengiz-pz
Copy link

@m4gr3d, I have just tested it [with Godot 4.3] & it works! Thanks for fixing this.

@m4gr3d
Copy link
Contributor

m4gr3d commented Aug 21, 2024

Great to hear!

@m4gr3d
Copy link
Contributor

m4gr3d commented Aug 21, 2024

Fixed by #92965

@m4gr3d m4gr3d closed this as completed Aug 21, 2024
@akien-mga akien-mga removed this from the 3.x milestone Sep 11, 2024
@akien-mga akien-mga added this to the 4.3 milestone Sep 11, 2024
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