I need to change status bar font color black/white when I’m changing my app background color.
All is fine when user uses “Light Mode” in iPhone, I’m drawing Rectangle with proper color and changing statusbar font color with
nativeUtils.setStatusBarStyle(setWhite===1 ? NativeUtils.StatusBarStyleWhite : NativeUtils.StatusBarStyleBlack)
but if user uses Dark Mode in his iPhone this does not work, I mean I’m settings white Rectangle where Statusbar is (in my app) and iPhone always display text in white fonts.
I have followed this explanation https://felgo.com/developers/forums/t/android-statusbar-style and also as suggested this GitHub example https://github.com/jpnurmi/statusbar qtstatusbar works on Android, does not work on iOS when I add Felgo to the Qt (works as it is with just the Qt) – I can see just black statusbar, so I disabled this on iOS and used
nativeUtils.setStatusBarStyle and it works fine until user sets Dark Mode in iPhone.
I have read these posts about disabling or opt out of DarkMode https://stackoverflow.com/questions/56537855/is-it-possible-to-opt-out-of-dark-mode-on-ios-13 I’m setting values in plist.info but nothing seems to work – I have always white font in statusbar.
Some advice would be appreciated.