{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/cordova-plugin-ionic-webview/issues/49","repository_url":"https://api.github.com/repos/ionic-team/cordova-plugin-ionic-webview","labels_url":"https://api.github.com/repos/ionic-team/cordova-plugin-ionic-webview/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/cordova-plugin-ionic-webview/issues/49/comments","events_url":"https://api.github.com/repos/ionic-team/cordova-plugin-ionic-webview/issues/49/events","html_url":"https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/49","id":275517597,"number":49,"title":"env(safe-area-inset-top) / constant(safe-area-inset-top) reporting 0 on iPhone X","user":{"login":"Screeze","id":6837754,"avatar_url":"https://avatars1.githubusercontent.com/u/6837754?v=4","gravatar_id":"","url":"https://api.github.com/users/Screeze","html_url":"https://github.com/Screeze","followers_url":"https://api.github.com/users/Screeze/followers","following_url":"https://api.github.com/users/Screeze/following{/other_user}","gists_url":"https://api.github.com/users/Screeze/gists{/gist_id}","starred_url":"https://api.github.com/users/Screeze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Screeze/subscriptions","organizations_url":"https://api.github.com/users/Screeze/orgs","repos_url":"https://api.github.com/users/Screeze/repos","events_url":"https://api.github.com/users/Screeze/events{/privacy}","received_events_url":"https://api.github.com/users/Screeze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-20T22:15:21Z","updated_at":"2017-12-12T09:23:07Z","closed_at":null,"author_association":"NONE","body":"I'm trying to add iPhone X Support to my app. I updated all ionic and cordova packages and plugins, including the ionic-webview.  I added viewport-fit=cover to the meta tag.\r\n\r\nHowever, I fail at getting the iPhone X to respect its safe areas now. The top notch is always covering my content.\r\nI tried it with standard Pages which contain headers, which actually have several references to env(safe-area-inset-top) / constant(safe-area-inset-top), but also tried my custom in game screens with this constants added as padding. However, the app always behaves as if the values where 0. Adding manual padding would work (but influence other devices, for sure). But adding env(safe-area-inset-top) / constant(safe-area-inset-top) does not work, it just shows like padding:0;.\r\n\r\nAs far as I have read the webview should be supporting this, but I fail at getting it to work. I'm trying this in iPhone X simulator, iOS 11.1.\r\n\r\nAny ideas?\r\n\r\n```\r\n> ionic info\r\ncli packages: (/usr/local/lib/node_modules)\r\n    @ionic/cli-utils  : 1.18.0\r\n    ionic (Ionic CLI) : 3.18.0\r\nglobal packages:\r\n    cordova (Cordova CLI) : 7.1.0 \r\nlocal packages:\r\n    @ionic/app-scripts : 3.1.2\r\n    Cordova Platforms  : android ios 4.5.2\r\n    Ionic Framework    : ionic-angular 3.9.2\r\nSystem:\r\n    ios-deploy : 1.9.1 \r\n    ios-sim    : 5.0.13 \r\n    Node       : v6.10.3\r\n    npm        : 3.10.10 \r\n    OS         : macOS Sierra\r\n    Xcode      : Xcode 9.1 Build version 9B55 \r\nEnvironment Variables:\r\n    ANDROID_HOME : not set\r\nMisc:\r\n    backend : pro\r\n```"},"comment":{"url":"https://api.github.com/repos/ionic-team/cordova-plugin-ionic-webview/issues/comments/350993170","html_url":"https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/49#issuecomment-350993170","issue_url":"https://api.github.com/repos/ionic-team/cordova-plugin-ionic-webview/issues/49","id":350993170,"user":{"login":"tobiasmuecksch","id":1294854,"avatar_url":"https://avatars3.githubusercontent.com/u/1294854?v=4","gravatar_id":"","url":"https://api.github.com/users/tobiasmuecksch","html_url":"https://github.com/tobiasmuecksch","followers_url":"https://api.github.com/users/tobiasmuecksch/followers","following_url":"https://api.github.com/users/tobiasmuecksch/following{/other_user}","gists_url":"https://api.github.com/users/tobiasmuecksch/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiasmuecksch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiasmuecksch/subscriptions","organizations_url":"https://api.github.com/users/tobiasmuecksch/orgs","repos_url":"https://api.github.com/users/tobiasmuecksch/repos","events_url":"https://api.github.com/users/tobiasmuecksch/events{/privacy}","received_events_url":"https://api.github.com/users/tobiasmuecksch/received_events","type":"User","site_admin":false},"created_at":"2017-12-12T09:23:06Z","updated_at":"2017-12-12T09:23:06Z","author_association":"NONE","body":"@sgrtho I've tried `constant` and `env`, because `constant` is deprecated in favor of `env` since iOS 11.2. But it still isn't working for me 👎 "}}
{"actor":{"display_login":"tobiasmuecksch"}}