cordova-plugin-inappbrowser
cordova-plugin-inappbrowser copied to clipboard
IOS - Not opening in full height - Only on the first time
Bug Report
IOS - Not opening in full height - Only on the first time
Problem
When opening a URL in the In App Brower for the first time, The height of the browser is not full height and the is a gap at the bottom
What is expected to happen?
Browser should be full height
What does actually happen?
Blank space at the bottom of the window (transparent and you can see the app)
I'm having this issue, but it's every time. Any fix?
Also having this issue. Trying out some new configs to see if anything changes. Has anyone looked into this?
More info on my project:
Currently running on cordova 8.1.2, Ionic 3.7.1, node 10.15.0 Xcode version 12.1. Testing on ios 14.
Also having this issue. Trying out some new configs to see if anything changes. Has anyone looked into this?
More info on my project:
Currently running on cordova 8.1.2, Ionic 3.7.1, node 10.15.0 Xcode version 12.1. Testing on ios 14.
Didn't find a fix, I just customized that status bar color to fit the app, and left it on.
Having similar issues here.. I'm using Ionic + capacitor 2.4.6, plugin version 4.0.2 and on iOS when i launch a page with inappbrowser and i close the fullscreen mode i can see part of the header of the application.
The issue is most probably related to the notch because on devices without notch everything looks fine.
Any suggestion or fix would be really appreciated.
Thanks
Same issue, except it's not only the 1st time. As @marshall86 noted, it seems to be caused by the notch.
That empty space is at the bottom in my app, just above the Close
button, so the upper portion of the footer of the app is partially visible.
A dirty hack could be to display a page or modal with the right color, to hide the app's content.
Anyone has a better idea on how to fix that?
Actually my problem doesn't seem to be linked to having a notch or not. I opened https://github.com/apache/cordova-plugin-inappbrowser/issues/870 for my issue, not being sure whether they are the same or not.
Setting location: 'no'
fixes the issue.
Setting
location: 'no'
fixes the issue.
How did you set it? Did you do it manually for each desired invocation of cordova.InAppBrowser.open
or did you override every invocation of cordova.InAppBrowser.open
(or even window.open
)?
Setting
location: 'no'
fixes the issue.
I was testing on an iPhone XR (iOS 17.5.1) with: Ionic 7 Angular 14.1 cordova-plugin-inappbrowser 5.0.0 @ionic-native/in-app-browser 5.23.0
and it was still broken.
Setting location: 'no'
fixed it for me as well:
this.inAppBrowser.create(urlToOpen, '_blank', { location: 'no' })
Retested on a Samsung Galaxy S23 Ultra (Android 14) to make sure it didn't break Android and all is well.