Closed bublikOff closed 1 year ago
Trying to use status bar plugin with cordova@11
config.xml
<preference name="StatusBarOverlaysWebView" value="false" /> <preference name="StatusBarBackgroundColor" value="#ffa726" />
In html app Im trying to change color manually according to scroll position but have no luck. It keeps original #ffa726 color
if(cordova.platformId == 'android') { StatusBar.backgroundColorByHexString(page.scrollTop > 30 ? '#ffff' : '#ffa726'); }
Can you provide a sample app? #ffff is not a valid value, it should be 6 digits #ffffff or 3 digits #fff, but not 4.
#ffff
#ffffff
#fff
My fault .. Cordova variable was overridden in app by local dummy data about Cordova
Trying to use status bar plugin with cordova@11
config.xml
In html app Im trying to change color manually according to scroll position but have no luck. It keeps original #ffa726 color