iOS StatusBarPlugin - important update

  • 1
  • Announcement
  • Updated 6 years ago
If you're using the StatusBarPlugin, we'll be posting a new version soon, which should fix the landscape mode issue. We've replaced the code in the phonegap-build/StatusBarPlugin repo with that from the cordova-plugins repository, so that we can keeps these repos in sync and share code.

Its possible that this will change some behaviours of your StatusBar. If so, you can still use the previous version of the plugin, you'll just need to explicitly set it in your config.xml:

<gap:plugin name="com.phonegap.plugin.statusbar" version="1.0.1" />

If you don't set the version explicitly on a plugin, each time you update your code, Build will use the latest version of a plugin.
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes

Posted 6 years ago

  • 1
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
The StatusBarPlugin has now been updated; the updated version can be found here. This should fix a variety of orientation issues people were seeing, but please test and help us verify for your use case.

Your app won't use the new version until you update the code -- simply rebuilding won't udpate the plugin version.

You'll probably notice right off the bat that it by default uses a black background and the light content styling. If you'd like to change this, add the following to your deviceready callback:
StatusBar.styleDefault();
StatusBar.backgroundColorByHexString("#FFFFFF");


Again, if it breaks things for you, you can revert to the old version by specifying it explicitly in your config.xml:
<gap:plugin name="com.phonegap.plugin.statusbar" version="1.0.1" />

And let us know if you have problems.
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
I have a issue post right here
http://community.phonegap.com/nitobi/...