-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to access StatusBar in JavaScript #32
Comments
I'm having the same issue, took exact same steps. |
I should have posted my solution. I was running my app via Would someone mind explaining why |
I got it working. I changed from using com.phonegap.plugin.statusbar to org.apache.cordova.statusbar and it started to work. I won't claim to understand the guts of phonegap build well enough to makes sense of this. |
I'm in the same position 😄 |
Well, I say I got it working, but I'm still struggling with it a little. I can see the JavaScript object StatusBar, but am still trying to get it to actually control the look of it. When my app starts I try to call StatusBar.overlaysWebView(false); but it does not seem to have an affect. |
Your calls to StatusBar may be firing before the device is ready. You might need to include
|
This seems to be same issue as #33 |
BTW, @andrewjmead & @jayrodkc did you get it running on Phonegap Build or locally? It was a bit unclear from your comments.... |
I was working locally and I was able to get it to work. |
@andrewjmead OK, so it seems that the issue mentioned on #33 is limited to Build. |
Cool, glad to help! Thanks for following up 😄! |
Let me preface this by saying I'm new to phonegap/cordova but not web development.
I added the following to my
config.xml
file:I have also included
phonegap.js
in my project. It was loaded successfully and I have access to the cordova global variable.As the README.md for this plugin implies I should be able to execute the following statement
StatusBar.styleLightContent();
. The issues is that StatusBar is not defined.Am I missing something when it comes to using phonegap build plugins?
The text was updated successfully, but these errors were encountered: