Comments (7)
edit CDVStatusBar.m
look for this line:
- (void) styleDefault:(CDVInvokedUrlCommand*)command
replace the whole method with
- (void) styleDefault:(CDVInvokedUrlCommand*)command
{
if (@available(iOS 13.0, *)) {
[self setStyleForStatusBar:UIStatusBarStyleDarkContent];
} else {
[self setStyleForStatusBar:UIStatusBarStyleDefault];
}
}
from cordova-plugin-statusbar.
when i have the time, i will create a fork and implement your suggestion
from cordova-plugin-statusbar.
closing since looks like people wants default to be black as it used to instead of native default.
That behavior has been fixed in #169
from cordova-plugin-statusbar.
Default should be the native default and we should add styleDark
from cordova-plugin-statusbar.
edit CDVStatusBar.m
look for this line:
- (void) styleDefault:(CDVInvokedUrlCommand*)command
replace the whole method with
- (void) styleDefault:(CDVInvokedUrlCommand*)command
{
if (@available(iOS 13.0, *)) {
[self setStyleForStatusBar:UIStatusBarStyleDarkContent];
} else {
[self setStyleForStatusBar:UIStatusBarStyleDefault];
}
}
WoooW! I had the same problem. This fix worked perfectly.
from cordova-plugin-statusbar.
Please, don't comment things out of topic.
The issue is about deprecating styleDefault because the name is confusing (default value of statusbar is lightContent).
Or documenting the iOS 13 behaviour (i.e. default depends on the device mode, dark mode -> white, light mode -> black)
Or just make it always set the text to black as it used to, but in that case I think it would be better to add a new method styleDark
and deprecate/remove the default one.
from cordova-plugin-statusbar.
when i have the time, i will create a fork and implement your suggestion
https://github.com/codextde/cordova-plugin-statusbar-color-fix
from cordova-plugin-statusbar.
Related Issues (20)
- Failed to fetch plugin cordova-plugin-statusbar@cordova-plugin-statusbar via registry. HOT 4
- Add success and error callbacks for the `overlaysWebView` method
- StyleDefault will set light text instead of dark. HOT 3
- Xcode 12 and iOS 9.0 various deprecation
- 2.4.3 BROKEN - Replacement Release Desperately Needed HOT 5
- iOS - HTML video player full screen causes web view overlay issues HOT 2
- Empty space below the status bar on devices without notch and iOS 15.4 HOT 5
- Webview doesn't take full height after hide
- Device elements overlap ionic header HOT 6
- On android 12, statusbar styleDefault method not work as expected
- iPhone 14 Pro floating island status bar height incorrect HOT 5
- Status bar background color overridden on Android 13 HOT 2
- backgroundColorByHexString does not work? HOT 2
- Plugin not working on Android 13 with cordova [email protected] HOT 10
- change statusBar background color and icon color for only one screen(Page) for iOS and android HOT 1
- Android top and bottom content overlapped by status bar after upgrade from 2.4.3 to 3.0.0 HOT 9
- StatusBar not changing Color on Android 13 HOT 7
- StatusBar still there, stopped to work HOT 1
- Playing video on iOS and shifting from landscape to portrait messes up status bar HOT 5
- Bottom nav bar overlaps webview in Android 13 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-statusbar.