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

Plugin overrides color settings from StatusBarPlugin #11

Open
i8ramin opened this issue Nov 2, 2013 · 9 comments
Open

Plugin overrides color settings from StatusBarPlugin #11

i8ramin opened this issue Nov 2, 2013 · 9 comments

Comments

@i8ramin
Copy link

i8ramin commented Nov 2, 2013

When used together with the https://github.com/phonegap-build/StatusBarPlugin plugin, the color settings are lost and status bar changes back to default style.

Haven't had a chance to dig deep into the code to figure out why, but will update this ticket once I find it.

@madrobby
Copy link

Same problem here. Statusbar text is white at first for me, then changes to black after a few seconds.

@j-mcnally
Copy link
Owner

Is this an ios7 thing admittedly i have not tested on ios 7

@madrobby
Copy link

FWIW, it works correctly when I set UIViewControllerBasedStatusBarAppearance to NO in the Info.plist file of the project. Maybe the overlay needs to inherit the statusbar settings from the topmost view controller.

@j-mcnally
Copy link
Owner

Yes this makes sense, i think the box is draw as white or black but then
set as transparent so it would be surprising that its keying off the wrong
color.

On Mon, Jan 13, 2014 at 6:45 PM, Thomas Fuchs [email protected]:

FWIW, it works correctly when I set
UIViewControllerBasedStatusBarAppearance to NO in the Info.plist file of
the project. Maybe the overlay needs to inherit the statusbar settings from
the topmost view controller.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-32228698
.

@demerzel3
Copy link

Is there a fix to this? I'm trying to use this plugin alongside the StatusBar plug-in and have similar issues: with UIViewControllerBasedStatusBarAppearance set to YES the tap listener works, but the statusbar color/visibility is broken. With UIViewControllerBasedStatusBarAppearance set to NO the visibility works fine but no tap event is fired.

@jakecraige
Copy link

UIViewControllerBasedStatusBarAppearance to NO in Info.plist is working for me. Thanks @madrobby

Just upgraded to Cordova 3.4.1, @demerzel3 perhaps try upgrading if you haven't and see if that fixes it.

@hodeyp
Copy link

hodeyp commented Jun 15, 2014

Any update on this issue? The UIViewControllerBasedStatusBarAppearance change does not work for me as it makes the status bar disappear.

@gregavola
Copy link

I'm also having this problem - any help would be great!

rrutsche pushed a commit to rrutsche/cordova-statusTap that referenced this issue Sep 1, 2014
…via plugin.xml to prevent statusbar color settings being overwritten. this fixes issue j-mcnally#11.
@orenagiv
Copy link

orenagiv commented Sep 2, 2014

Add this - and it will change the text color of the status-bar to white:

<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>

Make sure you also have the following in your plist:

<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>

confile pushed a commit to confile/cordova-statusTap that referenced this issue Jan 17, 2015
plugin.xml to prevent statusbar color settings being overwritten. this fixes issue j-mcnally#11. j-mcnally#11
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

8 participants