Description of the problem:
iOS 13 has been released and introduces the dark mode. After updating my device to iOS 13, I realized the StatusBar plugin from Capacitor stops working when dark mode is enabled. However the issue does not happen when dark mode is disabled, or on iOS < 13 and on Android (same codebase).
Affected platform
OS of the development machine
Other information: Tested on iPhone X. The codebase has "UIViewControllerBasedStatusBarAppearance" enabled.
Capacitor version: 1.1.1
node version: 10.0.0
npm version: 6.10.2
CocoaPods version: 1.7.5
Steps to reproduce:
Use StatusBar.setStyle.
import {
Plugins,
StatusBarStyle,
} from '@capacitor/core'
StatusBar.setStyle({
style: StatusBarStyle.Light
})
setTimeout(() => {
StatusBar.setStyle({
style: StatusBarStyle.Dark
})
}, 3000)
I can confirm this issue also exists with Capacitor version 1.2.1.
The style seems to actually be applied (e.g., StatusBar.getInfo() returns {"visible":true,"style":"LIGHT"}), but the status bar text remains white.
I also have the same problem.
Most helpful comment
I can confirm this issue also exists with Capacitor version 1.2.1.
The style seems to actually be applied (e.g.,
StatusBar.getInfo()returns{"visible":true,"style":"LIGHT"}), but the status bar text remains white.