question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: SafeArea for iphoneX in notch

See original GitHub issue

Bug 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

Captura de Pantalla 2019-10-26 a la(s) 14 08 24

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
dotNetkowcommented, Oct 30, 2019

Yes, this is web/css concern, not a Capacitor one. For what it’s worth, Ionic Framework handles this for you.

6reactions
loamacommented, Apr 12, 2020

Forget it, I was missing the viewport-fit=cover in the meta tag. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found