phonegap-build / StatusBarPlugin

PhoneGap Build Plugin providing some customizations to the iOS status bar
https://build.phonegap.com/plugins/304
92 stars 46 forks source link

Cannot set statusbar background color a second time #54

Closed jonhue closed 6 years ago

jonhue commented 6 years ago

With my PhoneGap Build application settings the background color of the statusbar on Android works perfectly fine. Either from within the config or from within javascript.

Now, when attempting to set the background color a second time (or if previously specified in the config, the first time from javascript), nothing happens.

StatusBar.backgroundColorByHexString('#000000'); // works
StatusBar.backgroundColorByHexString('#ffffff'); // does not work

or

<preference name="StatusBarBackgroundColor" value="#000000" /> <!-- works -->
StatusBar.backgroundColorByHexString('#ffffff'); // does not work