ollm opened a new issue, #1688: URL: https://github.com/apache/cordova-ios/issues/1688
# Bug Report ## Problem ### What is expected to happen? The status bar icons should switch between white and black depending on the color that is set. ### What does actually happen? The icons are always black. ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> I'm migrating my app from the `cordova-plugin-statusbar` plugin to Cordova's built-in status bar implementation, but this issue is preventing me from doing so. Related issue in `cordova-android` (already fixed): https://github.com/apache/cordova-android/issues/1967 <img width="452" height="85" alt="Image" src="https://github.com/user-attachments/assets/629521eb-ade5-4d62-aef3-9c3308b16bbc" /> This is the code that implements the status bar icon color change in `cordova-plugin-statusbar`: https://github.com/apache/cordova-plugin-statusbar/blob/70f444534f5164ce0c8fae3508b3d8cc68f34beb/src/ios/CDVStatusBar.m#L296-L309 ### Command or Code <!-- What command or code is needed to reproduce the problem? --> ``` js if(color == 'white' || currentTheme === 0) { //StatusBar.styleLightContent(); if(window.statusbar?.setBackgroundColor) window.statusbar.setBackgroundColor('#01010100'); } else { //StatusBar.styleDefault(); if(window.statusbar?.setBackgroundColor) window.statusbar.setBackgroundColor('#ffffff00'); } ``` ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> All ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> corodva-ios 8.1.1 ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above -- 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]
