GitToTheHub commented on issue #1949: URL: https://github.com/apache/cordova-android/issues/1949#issuecomment-5216182868
Thanks everyone for the investigation and testing. I am closing this issue as not actionable on Cordova side. The status bar JS API accepts CSS color values correctly since PR #1955, which was released by [cordova-android 15.1.0](https://cordova.apache.org/announcements/2026/07/22/cordova-android-15.1.0.html). The observed mismatch for 8-digit hex colors is a WebView compatibility behavior tracked in Chromium issue [40472321](https://issues.chromium.org/issues/40472321), not a Cordova-native color conversion bug. A fix would be to use the `rgba()` pattern like `window.statusbar.setBackgroundColor('rgba(255, 0, 0, 1)');` which would work as an opaque red. The issue about the 8-digit-hex colors is influenced by both WebView engine version and app targetSdkVersion. New enough WebView/Chromium support >= 62+ is required for CSS 8-digit hex in general. Android WebView also applies legacy compatibility behavior for apps targeting API 27 (Android 8.1) or lower. Standard CSS behavior is used for apps targeting API 28 (Android 9) or higher. -- 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]
