apache / apache/cordova-android

Splash screen icon not show at first launch

Open
#1,701 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.8k
Forks
1.6k
Avg merge
16h 18m
Merged PRs (30d)
11

Description

# Bug Report

## Problem

### What is expected to happen?

Icon should be visible at each start up.

### What does actually happen?

The splash screens show only the background color specified in the config.xml but not the drawable vector icon. This scenario occurs only the FIRST time (after the installation). Once the app is being opened once, after having close it, the icon is showed at each opening.

## Information

Here below my config.xml

`

APP_NAME
An app for booking from COMPANY S.r.l.
Contact us




























































































































`

### Command or Code

If can help, deploying directly from the Android studio (using version Iguana | 2023.2.1 Patch) the icon splash screen works like a sharm - so no issue. The problem appear only after having build the app and publish to our OTA (with same code obviously).

### Environment, Platform, Device

i'm using for test purpose:

- Google Pixel 8 with Android 14 (test KO)
- Google Pixel 5 with Android 13 (test KO)
- Huawei P40 Lite with Emui 12.0.0 (test OK)
- iPhone X with iOS 16.1 (test OK)

### Version information
- cordova 10.0.0
- cordova-android 12.0.1
- cordova-ios 7.0.1

## Checklist

- [x] I searched for existing GitHub issues (just found this #1481 but is talking about android 12)
- [ ] I updated all Cordova tooling to most recent version (no because updating the ios build will fail)
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start with the Android splash-screen preferences and icon entries in config.xml, then compare builds deployed through OTA with the Android Studio deployment described in the report. Reproduce on the Pixel 8 or Pixel 5 during the first launch after installation; done means the drawable vector icon appears on the splash screen in the OTA build on Android 13 and 14.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.