Skip to content

Option to completely disable the built-in window.statusbar plugin #1967

Description

@ollm

Feature Request

Motivation Behind Feature

I'm using my own status bar plugin because it provides additional functionality that is not available in the built-in implementation, such as proper edge-to-edge support and the ability to retrieve the status bar height.

Since the built-in status bar plugin was introduced in Cordova Android, I've been experiencing conflicts between the two implementations. For example, the status bar icon color changes unexpectedly a few moments after the app starts, most likely when the built-in plugin updates the status bar.

The simplest solution would be to provide an option to completely disable the built-in plugin so developers can use their own implementation without interference.

Feature Description

Add a configuration option that completely disables the built-in window.statusbar plugin, preventing it from initializing or modifying the status bar.

This would allow custom plugins, such as my own implementation, to work without conflicts:
https://github.com/ollm/cordova-plugin-statusbar/tree/feature/addGetStatusBarHeightMethod

Alternatives or Workarounds

The current workaround is to remain on Cordova Android 14.0.1, where the built-in status bar plugin is not present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions