j-mcnally / cordova-statusTap

Capture tap events on the status bar.
http://www.kohactive.com
MIT License
53 stars 17 forks source link

Plugin overrides color settings from StatusBarPlugin #11

Open i8ramin opened 11 years ago

i8ramin commented 11 years ago

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 commented 10 years ago

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

j-mcnally commented 10 years ago

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

madrobby commented 10 years ago

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 commented 10 years ago

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 notifications@github.comwrote:

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/j-mcnally/cordova-statusTap/issues/11#issuecomment-32228698 .

demerzel3 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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

gregavola commented 10 years ago

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

orenagiv commented 10 years ago

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/>