-
Notifications
You must be signed in to change notification settings - Fork 16
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
safe areas do not work properly on IOS ( iPhone11 ) #10
Comments
I have the same problem here. Does anyone have a solution for this? |
I can't reappear |
Not sure if I fully get what you're saying, but adding the following made it work for me on iOS <meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> |
I was facing the same problem! |
I have an angular app purely using capacitor 4 without Ionic. I am using the plugin and it works like a charm on Android but unfortunately not so good on iOS. I also tried the css way without the plugin but the result was same:
With both ways I am using:
viewport-fit=cover
in viewport metatagios: {
contentInset: "always", in the capacitor.config.ts file
},
But the content of the app goes under the status bar / top safe area when scrolling. I also tried various combinations with these options but none of the results was good ( for example I got the safe areas properly but content goes under them and they are transparent I think it was with not using contentInset and viewport-fit with contain not cover ).
Is there any way to make this work properly with capacitor 4 on IOS ?
The text was updated successfully, but these errors were encountered: