apache / cordova-plugin-statusbar

Apache Cordova Status Bar Plugin
https://cordova.apache.org/
Apache License 2.0
618 stars 480 forks source link

Status bar background color overridden on Android 13 #244

Closed gmilof closed 1 year ago

gmilof commented 1 year ago

Bug Report

Problem

On Android 13 the status bar background color is always black. I've set the color on the config.xml with the StatusBarBackgroundColor preference and it works on ios and android < 13 but not on Android 13.

What is expected to happen?

Status bar should have the color I've set.

What does actually happen?

Status bar color is black. It shows my color for a few milliseconds than it becomes black.

Information

Just set the background color with StatusBarBackgroundColor in the config.xml and run the application on Android 13.

Command or Code

<preference name="StatusBarBackgroundColor" value="#cccccc" /> in config.xml

Environment, Platform, Device

Android 13, Android studio 2021.2.1 patch 2

Version information

cordova cli v 11.0.0 cordova-android v 11.0.0 cordova-plugin-statusbar v3.0.0

Checklist

gmilof commented 1 year ago

It seems like this is caused by the animation in the splash screen plugin. Commenting this out in the splash screen plugin: image solves this issue.

jcesarmobile commented 1 year ago

closing as duplicate of https://github.com/apache/cordova-android/issues/1501 since the problem is on cordova-android and not in the plugin