This is a migrated thread and some comments may be shown as answers.

Statusbar color in Cordova 3.0

1 Answer 64 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Idan
Top achievements
Rank 1
Idan asked on 31 Mar 2014, 01:08 PM
How do I change the background and foreground color of the StatusBar for iOS with an app built with Cordova 3.0.0 (not 3.1 or 3.2)?

I want to have a black background and white foreground color.

1 Answer, 1 is accepted

Sort by
0
Iva Koevska
Telerik team
answered on 02 Apr 2014, 08:42 AM
Hello Idan,

You can still achieve this task using the StatusBar custom plugin. Download it from here (the latest version still seems compatible with Cordova 3.0.0 according to the plugin.xml). Unpack the archive, and zip the contents of the package folder (so that plugin.xml is in the root of the archive). Then, import the custom plugin in your project. Call the methods that let you control the font and the background color in your onDeviceReady (e.g. StatusBar.backgroundColorByName and StatusBar.styleLightContent). (Note that you might need to set StatusBar.overlaysWebView to false). This will not work in the device simulator and in the companion app. To test your app, you will need to deploy it on a real device.

Regards,
Iva Koevska
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
Apache Cordova
Asked by
Idan
Top achievements
Rank 1
Answers by
Iva Koevska
Telerik team
Share this question
or