Skip to content

[Bug]: System Bars not updating background color when switching color theme on Android <= 14 #8286

@luisbytes

Description

@luisbytes

Capacitor Version

8.0.0

Other API Details

node: 24.12.0
npm: 11.6.2

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

When switching the theme (light/dark) on devices using Android <= 14, the safe-area margins do not update their background color, causing the Status Bar content to become hard to read.
If the app is closed and reopened, the background color is applied correctly.

Expected Behavior

The safe-area margins should update their background color immediately when switching between light and dark themes, without requiring the app to be closed and reopened.

Project Reproduction

https://github.com/luisbytes/system-bars

Additional Information

@theproducer This functionality could be implemented using handleOnConfigurationChanged by updating the background just like the Status Bar legacy plugin does.

protected void handleOnConfigurationChanged(Configuration newConfig) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions