Skip to content
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

Can't get styleLightContent to work #38

Open
lance-anderson opened this issue Jun 13, 2014 · 2 comments
Open

Can't get styleLightContent to work #38

lance-anderson opened this issue Jun 13, 2014 · 2 comments

Comments

@lance-anderson
Copy link

I'm using PhoneGap Build. AppID 958859.

I've got this in my config.xml:

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

and I've got this in my main.js file:

function deviceReady() {
  StatusBar.backgroundColorByHexString("#660000");
  StatusBar.styleLightContent();
}
document.addEventListener('deviceready', deviceReady, false);

I get what appears to be a black status bar with black text and no access to the StatusBar object in the console using weinre. Specifically I get:

ReferenceError: Can't find variable: StatusBar

However, per another user's suggestion, if I switch to using version 1.0.1 and don't make any other changes I at least get the red background but still no white text.

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

I'm also able to access the StatusBar object from the console.

@hoetmaaiers
Copy link

I am also wondering where I can access the StatusBar object. The documentation is not telling me anything about this. Why do you think there is an event 'deviceready' where the StatusBar is hooked into?

@miemo
Copy link

miemo commented Sep 5, 2014

This one seems to be same issue as #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants