bug: SafeArea for iphoneX in notch
See original GitHub issueBug Report
Capacitor Version
npx cap doctor
output:
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 1.3.0
@capacitor/core: 1.3.0
@capacitor/android: 1.3.0
@capacitor/ios: 1.3.0
Installed Dependencies:
@capacitor/cli 1.3.0
@capacitor/core 1.3.0
@capacitor/android 1.3.0
@capacitor/ios 1.3.0
Affected Platform(s)
- Android
- iOS
- Electron
- Web
Current Behavior
Currently in iphone X there is no safe area for the webview, in order to see the content correctly and not overlap the notification bar.
Expected Behavior
It is desired that there is a safearea for the webview on an iPhone X, so that the content is viewed correctly and does not overlap the notification bar.
Sample Code or Sample Application Repo
Reproduction Steps
Other Technical Details
npm --version
output:
6.9.0
node --version
output:
v10.16.3
pod --version
output (iOS issues only):
1.8.4
Other Information
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (1 by maintainers)
Top Results From Across the Web
How to Handle Safe Area Insets for iPhone X, iPad X, Android P
More and more mobile devices feature a notch (or display cutout). This guide shows how to use safe area insets to handle it...
Read more >iPhone X safeAreaInsets, more accu… - Apple Developer
iPhone X safeAreaInsets, more accurate for notch and corners for improved ... Right now, the safe area is huge, just ensuring buttons can...
Read more >Updating your GUI for iPhone X and “Notched” Devices
As you can see, on the iPhone X, the safe area pushes the GUI into the top and bottom in portrait mode, and...
Read more >iOS notch safe area inconsistent behavior - Ionic Framework
Hi, I'm having issue with ion-toolbar paddings inside the safe area of iPhone 10+. At first the webview starts where it should (window....
Read more >Supporting safe areas | React Navigation
By default, React Navigation aids in ensuring your application displays correctly on the iPhone X and other devices with notches and "safe areas"....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, this is web/css concern, not a Capacitor one. For what it’s worth, Ionic Framework handles this for you.
Forget it, I was missing the viewport-fit=cover in the meta tag. Thanks!