-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
iPhone X support #325
Comments
@cvanem I'm using this fork of themeable browser now: https://github.com/toontoet/cordova-plugin-themeablebrowser.git |
Hello, Before i post about like this issue, i read your issue and i face the same thing. I face the same problem when testing on iphone x, with latest ios 12 Testing on iphone 7 plus with latest ios without any issues, just i face this issue on iphone x. @dpa99c can you please test on iphone x to see this issue ? Regards |
I have patched a fix which resolves this issue for iPhone X family devices into a fork of this plugin (cordova-plugin-inappbrowser-popup-bridge). When I have time, I will back patch it to this plugin (or someone else can do it before me). |
Hello @dpa99c , We wait your fix. thanks Regards. |
Hello @dpa99c I try to use (cordova-plugin-inappbrowser-popup-bridge). but this plugin have an 2 issues: I hope these information will help to solve this issue. Thanks again for solving old issues, and we hope from you to solve this issue as soon as possible. Regards |
@mosababubakr
The fix which I committed to Note that
Status bar color is not an issue for me because in the app in which I use
However, this statusbar is also applied in landscape orientation, which is fine for non-iPhone X family, but means on iPhone X family the status is displayed when it should be hidden (as it is in the main app Webview by This is not a problem for me as my app is fixed in portrait, however it could do with fixing for generic use. The above screenshots have been created using the |
Thanks for explain. Anyway, Thanks Regards |
@mosababubakr I will first try to fix |
If you can also fix the margins in landscape, please refer to the following picture to see the issue. You can make safe margins in landscape mode as safari do, please open Safari in iphone x in landscape mode and try to open any website, you will see that the margin is safe and the camera not conflict with the inappbrowser contents. ( in the left side). Regards |
This needs to be addressed using the The See Designing Websites for iPhone X for an explanation of safe area insets. |
I know that safe-area-inset can be used in the main cordova webview, but for standard method, inappbrowser should work as Safari work for ios devices, so, because inappbrowser main purpose to load external websites, you can't control all websites, so, it is a nice idea to make inappbrowser uses safe margins in landscape mode only for iphone x devices. (you can make this as an option for inappbrowser). (safari app using safe margins in landscape mode for iphone x devices, and gray background appear , please open safari app in iphone x to see what i mentioned). Anyway, this is not a big problem, my idea is just to make better impression to the users. And, from now, most companies start to make phone devices to be full margins edge on the screen like: iphone x family devices, samsung galaxsy s10 devices...... etc. Regards |
I've had a go a fixing this so the status bar is hidden in landscape and shown in portrait orientation, but the changes require an understanding of the native iOS view hierarchy (mine is minimal and I don't have the need to expand it), so I'm going to have to leave this to someone with more native iOS UI experience. An ideal fix would work both with To automatically set the background color of the status bar in the inappbrowser window to the same as that specified in |
So, now, I think the only big problem need to be solved to fix the status bar height in master version of inappbrowser. (portrait mode) Regards |
that at least I think I can help with: it's currently hard-coded at 20px on master of this plugin, so I can at least bring that across the change from popupbridge as a PR which applies the device-specific value. |
I check safari app in landscape mode at iphone x, there is no status bar appear. So inapbrowser should remove grey bar in landscape mode for iphone x devices as safari, instead of grey bar. Regards |
@mosababubakr that's also what I've had a go at setting the correct statusbar height in portrait in this plugin (as my popupbridge fork now does) but there must be some difference now between them, because the code that works in popupbridge does not work when I translate it to this plugin. When I have time, I will investigate further. Or hope that someone with more native iOS UI experience picks up this issue and fixes it before me 😀 |
I found that if you set usewkwebview=yes, then the status bar will overlays the main view and distort it, and also, for landscape view if you set usewkwebview=yes, then the screen for iphone x not fit correctly, so, i back to default behavior (aka usewkwebview=no) or omit this option, without face any problem. So, if you tend to complete support the option usewkwebview=yes, then I think you can improve this option to fit and work correctly for iphone x, so, you can rebuild this option by adding the support of wkwebview without change the behavior of style. Regards |
Hi @dpa99c ,may I know when this fix will be merged to master of inappbrowser? |
@KishoreKoushik I've not been able to fix this issue (see my comment above) |
@dpa99c But I used, cordova-plugin-inappbrowser-popup-bridge and I don't see the overlap issue anymore. The what is the issue with the above plugin |
I've not been able to translate that code from popupbridge IAB to this plugin and get it working. |
This issue not solved until now !!!! no any one can solve this big problem ??? where are you programmers ? |
@dpa99c Hello, Is there any solution for this issue ? I think iphone x family devices and upper versions still face this issue. |
@dpa99c |
@mosababubakr I'm busy with many other things at the moment - when I have time, I'll take a look |
I have altered the |
closing as duplicate of #301 |
On iPhone X and higher the inappbrowser looks like this (I'm referring to the status bar):
I have added the new splashscreen image and the app itself looks great. Is there a way to fix this?
Is there also a way to keep the content of the inappbrowser from going under the "homebar"?
Phonegap uses "constant(safe-area-inset-bottom)" and "env(safe-area-inset-bottom)" for this.
The text was updated successfully, but these errors were encountered: