You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/18 13:16:47 UTC

[GitHub] [cordova-ios] mosabab opened a new issue #907: [iOS] StatusBarStyle {lightcontent} are always set to {darkcontent} with ios@6.0.0

mosabab opened a new issue #907:
URL: https://github.com/apache/cordova-ios/issues/907


   # Bug Report
   
   ## Problem
   `<preference name="StatusBarStyle" value="lightcontent" />` not work take the action when you build the iOS.
   
   ### What is expected to happen?
   `<preference name="StatusBarStyle" value="lightcontent" />` should be take the action when you build your iOS app.
   
   
   ### What does actually happen?
   If you set `<preference name="StatusBarStyle" value="lightcontent" />` in your config.xml and you try to build your project with `cordova platform add ios@6.0.0`
   And after that open the project at Xcode, you will see that statusbar set to default which mean: (dark text, light background) instead of lightcontent which mean: light text, dark background
   
   In other words:
   What actually happened for now is:
   The default value appear same as lightcontent value Which is dark text for light background.
   ( the behaviour for default and lightcontent become the same).
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   What i did to fix this issue as a temporary solution, I change the the style manually by js code after onDeviceReady() like the following:
   
   `function onDeviceReady() {`
   `StatusBar.styleLightContent();`
   `}`
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   In your config.xml put the preference to <preference name="StatusBarStyle" value="lightcontent" />
   And after that build your app using cordova command `cordova platform add ios@6.0.0` , and open the project in Xcode.
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   macOS, iOS 13.5, iPhone Series (8, 11) or even emulator.
   
   
   ### 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.
   -->
   Cordova CLI v9.0.0
   cordova-plugin-statusbar #master version.
   Xcode 11.5
   cordova-ios v6.0.0
   
   
   ## 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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org