Boris Bondarenko
Boris Bondarenko

Reputation: 163

Need fullscreen Cordova Inappbrowser on iOS

I need to make my app fullscreen like Google Maps (with content all over display including status bar).

I was able to make html body fullscreen.

But I can't make inappbrowser to use all body height. It starts below status bar.

How can I make inappbrowser starts on body top?

Upvotes: 0

Views: 164

Answers (2)

Alexey MEYER
Alexey MEYER

Reputation: 1

It possible only via modify plugin files: plugins/cordova-plugin-inappbrowser/src/ios/CDVWKInAppBrowser.m

Go to this string

CGFloat statusBarHeight = [self getStatusBarOffset];

... and change it to 0:

CGFloat statusBarHeight = 0.0;

Upvotes: 0

BigBalli
BigBalli

Reputation: 807

inappbrowser respects whatever setting you have for your app. You have two options:

  1. hide the status bar for the entire app
  2. modify the native code to hide the status bar when inappbrowser is called.

Upvotes: 0

Related Questions