[QUESTION] There are two splash screens on Android 12 and higher #426

Closed
opened 2026-02-04 20:25:39 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @JVT038 on GitHub (Nov 17, 2022).

Describe the bug
I've recently accidentally updated my Android version to Android v12.
This version apparently had a new 'splash screen' feature, which forced a splash screen to every app- regardless of whether the app supports it or not. More info: https://developer.android.com/develop/ui/views/launch/splash-screen

I've noticed that when I open Immich, I have two splash screens. One of which was forced by Android 12, and the other built-in splash screen. Android does have an API to integrate the app's splash screen with the splash screen forced by Android 12, so this is fixable. I've also added a video recording.

Task List

Please complete the task list below. We need this information to help us reproduce the bug or point out problems in your setup. You are not providing enough info may delay our effort to help you.

  • I have read thoroughly the README setup and installation instructions.
  • I have included my docker-compose file.
  • I have included my redacted .env file.
  • I have included information on my machine, and environment.

To Reproduce
Steps to reproduce the behavior:

  1. Update to Android 12
  2. Open Immich
  3. See two splash screens

Expected behavior
I expected Immich to have one splash screen instead of two.

Screenshots

https://user-images.githubusercontent.com/47184046/202293016-a41743a1-20c8-454c-adb7-25cf501157b2.mp4

System

  • Phone OS [iOS, Android]: Android 12
  • Server Version: 1.35.0
  • Mobile App Version: 1.35.0
Originally created by @JVT038 on GitHub (Nov 17, 2022). **Describe the bug** I've recently accidentally updated my Android version to Android v12. This version apparently had a new 'splash screen' feature, which forced a splash screen to every app- regardless of whether the app supports it or not. More info: https://developer.android.com/develop/ui/views/launch/splash-screen I've noticed that when I open Immich, I have two splash screens. One of which was forced by Android 12, and the other built-in splash screen. Android does have an API to integrate the app's splash screen with the splash screen forced by Android 12, so this is fixable. I've also added a video recording. **Task List** *Please complete the task list below. We need this information to help us reproduce the bug or point out problems in your setup. You are not providing enough info may delay our effort to help you.* - [x] I have read thoroughly the README setup and installation instructions. - [ ] I have included my `docker-compose` file. - [ ] I have included my redacted `.env` file. - [x] I have included information on my machine, and environment. **To Reproduce** Steps to reproduce the behavior: 1. Update to Android 12 2. Open Immich 3. See two splash screens **Expected behavior** I expected Immich to have one splash screen instead of two. **Screenshots** https://user-images.githubusercontent.com/47184046/202293016-a41743a1-20c8-454c-adb7-25cf501157b2.mp4 **System** - Phone OS [iOS, Android]: `Android 12` - Server Version: `1.35.0` - Mobile App Version: `1.35.0`
Author
Owner

@alextran1502 commented on GitHub (Nov 21, 2022):

The first splash screen is the native splash screen which we have no control over, and the second splash screen is the intended splash screen to perform the login action if you check the "Stay logged in" box

@alextran1502 commented on GitHub (Nov 21, 2022): The first splash screen is the native splash screen which we have no control over, and the second splash screen is the intended splash screen to perform the login action if you check the "Stay logged in" box
Author
Owner

@alextran1502 commented on GitHub (Nov 21, 2022):

I apologize for not reading the link about Splash Screen you mentioned. I will take a look at this.

@alextran1502 commented on GitHub (Nov 21, 2022): I apologize for not reading the link about Splash Screen you mentioned. I will take a look at this.
Author
Owner

@JVT038 commented on GitHub (Nov 30, 2022):

The first splash screen is the native splash screen which we have no control over

According to the docs, you have to migrate your current splash screen to the new API for Android 12+ and that will fix this issue. So it can be fixed

It is also mentioned what happens if the splash screen isn't migrated to the new API:

If you do not migrate your app, your app launch experience on Android 12 and higher will be either degraded or may have unintended results:
If your existing splash screen is implemented using a custom theme that overrides android:windowBackground, the system replaces your custom splash screen with a default Android system splash screen on Android 12 and higher (which may not be your app’s intended experience).
If your existing splash screen is implemented using a dedicated Activity, launching your app on devices running Android 12 or higher results in duplicate splash screens: the new system splash screen displays, followed by your existing splash screen activity.

@JVT038 commented on GitHub (Nov 30, 2022): > The first splash screen is the native splash screen which we have no control over According to [the docs](https://developer.android.com/develop/ui/views/launch/splash-screen/migrate), you have to migrate your current splash screen to the new API for Android 12+ and that will fix this issue. So it can be fixed It is also mentioned what happens if the splash screen isn't migrated to the new API: >If you do not migrate your app, your app launch experience on Android 12 and higher will be either degraded or may have unintended results: If your existing splash screen is implemented using a [custom theme that overrides android:windowBackground](https://developer.android.com/topic/performance/vitals/launch-time#solutions-3), the system replaces your custom splash screen with a default Android system splash screen on Android 12 and higher (which may not be your app’s intended experience). If your existing splash screen is implemented using a dedicated Activity, launching your app on devices running Android 12 or higher results in duplicate splash screens: [the new system splash screen](https://developer.android.com/about/versions/12/features/splash-screen) displays, followed by your existing splash screen activity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#426