xavierserrai commented on PR #1695:
URL: https://github.com/apache/cordova-ios/pull/1695#issuecomment-5396295973
Dear @MatrixNeoKozak ,
I have tested the cordova-ios 8.1.1 platform with your fix and js api works
properly:
```````
window.statusbar.setBackgroundColor('#FF0000');
```````
Sets the status bar to red color.
However, the configuration in config.xml:
```````
<preference name="StatusBarOverLaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#FF0000" />
```````
Is not working properly. At app startup, for one moment it appears a red
background statusbar, but it disappears suddently leaving a statusbar with a
gradient background.
Also, the statusbar in both cases overlays the webview.
For the overlay statusbar issue it was solved in
[cordova-plugin-statusbar](https://github.com/apache/cordova-plugin-statusbar)
using this code:
```````
CGRect statusBarFrame = CGRectZero;
if (@available(iOS 13.0, *)) {
UIWindowScene *windowScene = self.viewController.view.window.windowScene;
statusBarFrame = windowScene.statusBarManager.statusBarFrame;
}
````````
Thanks,
--
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]