display-cutouts

env(safe-area-inset-top) not working on Android Pie + WebView 69

早过忘川 提交于 2020-05-14 18:37:16
问题 I have a fullscreen cordova app, I used to use the css below for iPhone X's notch, padding-top: 25px; padding-top: env(safe-area-inset-top); and Android will ignore env(safe-area-inset-top) , and use 25px to prevent the status bar from covering my view. Here is the thing, I suddenly find out webview support env() after Android System Webview component was upgraded to version 69.0.3497.100 in my Android Oreo phone (Huawei mate10). But when I install this cordova app in an Android Pie emulator