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

Statusbar disappears after using inappbrowser #31

Open
orenagiv opened this issue Apr 15, 2014 · 5 comments
Open

Statusbar disappears after using inappbrowser #31

orenagiv opened this issue Apr 15, 2014 · 5 comments

Comments

@orenagiv
Copy link

The Statusbar disappears after opening a URL using in-app-browser.

My config.xml definitions are:

    <gap:plugin name="com.phonegap.plugin.statusbar" />
    <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">
        <false />
    </gap:config-file>
    <gap:config-file platform="ios" parent="UIStatusBarHidden">
        <true />
    </gap:config-file>

I read somewhere, that if the UIViewControllerBasedStatusBarAppearance will be set to "YES" it might solve it.
However, in my case, I would like the App to start without a statusbar, and only make it appear later on after the App is loaded. So I need those settings above.

@ghost
Copy link

ghost commented Apr 28, 2014

this was driving me crazy too.

In the inappbrowser.m file find this:

_previousStatusBarStyle = -1;

if (IsAtLeastiOSVersion(@"7.0")) {
[[UIApplication sharedApplication] setStatusBarStyle:_previousStatusBarStyle];
}

and change it to this:

if (IsAtLeastiOSVersion(@"7.0")) {
[[UIApplication sharedApplication] setStatusBarStyle:_previousStatusBarStyle];
}
_previousStatusBarStyle = -1;

@hzlzh
Copy link

hzlzh commented Jun 15, 2014

me too, and this solved.

@orenagiv
Copy link
Author

Thanks!
I'll create a pull-request for PhoneGap Build?

@orenagiv
Copy link
Author

@hzlzh
Copy link

hzlzh commented Jun 15, 2014

@orenagiv Cool~

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

2 participants