erisu commented on issue #1949: URL: https://github.com/apache/cordova-android/issues/1949#issuecomment-4601906426
`StatusBarBackgroundColor` is a preference intended to set the status bar background color at startup. Configuration preferences are not intended to be changed throughout the app lifecycle. For simple apps setting this config would apply across all pages. The purpose of the JavaScript API is not new. While it may have a different method name than the original implementation and added to the platform core, this API has existed in the StatusBar plugin since [v1.0.0](https://github.com/apache/cordova-plugin-statusbar/tree/r1.0.0#statusbarbackgroundcolorbyhexstring). It is intended for specific use cases. For example, an app may have multiple views with different background colors, and the developer may want the status bar to match the background color of the current page. This API allows the status bar color to be changed dynamically. Ideally, I would encourage apps to migrate to Edge-to-Edge and avoid using a status bar altogether. However, the API and behavior that support dynamically changing the status bar background color are not new. It was added to core to maintain previous behavior for apps that don't switch to Edge-to-Edge. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
