Skip to content

fix:(ui): splash screen crash on android 12+ devices#2499

Open
RohitKushvaha01 wants to merge 2 commits into
Acode-Foundation:mainfrom
RohitKushvaha01:main
Open

fix:(ui): splash screen crash on android 12+ devices#2499
RohitKushvaha01 wants to merge 2 commits into
Acode-Foundation:mainfrom
RohitKushvaha01:main

Conversation

@RohitKushvaha01

Copy link
Copy Markdown
Member

No description provided.

@RohitKushvaha01 RohitKushvaha01 self-assigned this Jul 17, 2026
@RohitKushvaha01
RohitKushvaha01 marked this pull request as draft July 17, 2026 14:05
@RohitKushvaha01 RohitKushvaha01 moved this from Backlog to In progress in The Code Board - Acode Jul 17, 2026
@greptile-apps

greptile-apps Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes the splash screen crash on Android 12+ devices by adding AndroidWindowSplashScreenBehavior with value icon_preferred, which opts into the icon-based Android 12 SplashScreen API behaviour, and AutoHideSplashScreen to ensure automatic dismissal. Three additional legacy-plugin preferences are included but have no runtime effect.

  • AndroidWindowSplashScreenBehavior value icon_preferred is the key fix: it tells the Android 12+ system splash screen to render the adaptive icon rather than a blank/crashing state.
  • AutoHideSplashScreen is meaningful; it controls auto-dismissal in cordova-android regardless of the legacy plugin.
  • SplashScreenDelay, FadeSplashScreen, and FadeSplashScreenDuration are only consumed by the legacy cordova-plugin-splashscreen, which is already disabled via SplashScreen=none on line 27.

Confidence Score: 5/5

Safe to merge — the change is a config-only addition of splash screen preferences with no functional regressions on older Android versions.

The actual crash fix (AndroidWindowSplashScreenBehavior=icon_preferred) is targeted and correct. The three extra legacy-plugin preferences are inert noise but do not break anything. No code paths, logic, or permissions are altered.

No files require special attention.

Important Files Changed

Filename Overview
config.xml Adds five splash-screen preferences to fix the Android 12+ crash; the critical fix is AndroidWindowSplashScreenBehavior=icon_preferred, with three legacy-plugin preferences (SplashScreenDelay, FadeSplashScreen, FadeSplashScreenDuration) that are already redundant given SplashScreen=none on line 27.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[App Launch] --> B{Android version?}
    B -->|< 12| C[Legacy Cordova splash screen]
    C --> D["SplashScreen=none\n(legacy plugin disabled)"]
    D --> E[Splash skipped immediately]
    B -->|12+| F[Android SplashScreen API]
    F --> G["AndroidWindowSplashScreenBehavior\n= icon_preferred"]
    G --> H[Show adaptive icon splash]
    H --> I["AutoHideSplashScreen=true\nDismiss automatically"]
    I --> J[MainActivity visible]
    E --> J
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A[App Launch] --> B{Android version?}
    B -->|< 12| C[Legacy Cordova splash screen]
    C --> D["SplashScreen=none\n(legacy plugin disabled)"]
    D --> E[Splash skipped immediately]
    B -->|12+| F[Android SplashScreen API]
    F --> G["AndroidWindowSplashScreenBehavior\n= icon_preferred"]
    G --> H[Show adaptive icon splash]
    H --> I["AutoHideSplashScreen=true\nDismiss automatically"]
    I --> J[MainActivity visible]
    E --> J
Loading

Reviews (2): Last reviewed commit: "Update config.xml" | Re-trigger Greptile

Comment thread config.xml
Comment thread config.xml
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@RohitKushvaha01 RohitKushvaha01 added the CI: RUN ON-DEMAND PREVIEW RELEASES Triggers an on-demand preview build for this pull request via CI workflow. label Jul 18, 2026
@RohitKushvaha01
RohitKushvaha01 marked this pull request as ready for review July 21, 2026 15:28
@RohitKushvaha01 RohitKushvaha01 added CI: RUN ON-DEMAND PREVIEW RELEASES Triggers an on-demand preview build for this pull request via CI workflow. and removed CI: RUN ON-DEMAND PREVIEW RELEASES Triggers an on-demand preview build for this pull request via CI workflow. labels Jul 21, 2026
@github-actions github-actions Bot removed the CI: RUN ON-DEMAND PREVIEW RELEASES Triggers an on-demand preview build for this pull request via CI workflow. label Jul 21, 2026
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

🔴 (Workflow Trigger stopped), Your On-Demand Preview Release/build for #2499.
status: failure


Please Click here to view that github actions

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

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

1 participant