Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70444

InAppBrowser header issue for iPhone X or similar devices, which uses notch header display - Solution

$
0
0

@champion007 wrote:

Here is a working workaround/example tested on iOS/Android devices having notch display to make header fit to screen.

Plugin Version - **<plugin** name **=** "cordova-plugin-inappbrowser" spec **=** "^3.0.0" **/>**

InAppBrowser plugin adds hard coded header for iOS devices which 22px which is not equivalent for notch displays.

To fix this simply go to XCode before running project and comment the below file content, it can’t be done in the workspace plugin list as it will over ride each time you build project.

Select : Project --> Plugins --> CDVInAppBrowser.m and comment out the code

//statusBarFrame.size.height = STATUSBAR_HEIGHT;

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70444

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>