After upgrading Xcode 10 to 11.5 and upgrading other components for cordova/ionic v1 app, the previous solutions for getting full screen - notch safe zones/no white/black bars - on an iPhoneX/iPhone11 are no longer working. The screen pushes up behind the notch.
In index.html:
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
And in CSS body{ } and Ionics .tabs { } the following code is no longer working:
body {
padding-top: constant(safe-area-inset-top) ;
padding-top: env(safe-area-inset-top) ;
}
.tabs {
padding-top: constant(safe-area-inset-top) ;
padding-top: env(safe-area-inset-top) ;
}
Does anyone have a solution to this?
I am not certain if this related or not, but I am beginning to suspect it is. I am getting some gulp messages cannot load gulp ... at the start of the compile of app from CLI. My app compiles with error or failing - and deploys to simulator devices just fine. But I am wondering if the gulp/sass issues is contributing the safe zone UI layout issues I am seeing.
% ionic cordova build ios
> ionic-v1 build
[08:16:10] Cannot load gulp: ReferenceError: primordials is not defined
[08:16:10] Cannot load gulp: ReferenceError: primordials is not defined
[08:16:10] Cannot run sass task: missing in gulpfile.js
[08:16:10] Cannot load gulp: ReferenceError: primordials is not defined
> cordova build ios
and my build environment:
% ionic info
Ionic:
Ionic CLI : 6.10.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : ionic1 1.0.0
@ionic/v1-toolkit : 1.0.22
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 32 other plugins)
Utility:
cordova-res : 0.15.1
native-run : not installed
System:
ios-deploy : 1.10.0
ios-sim : 8.0.2
NodeJS : v14.5.0 (/usr/local/Cellar/node/14.5.0/bin/node)
npm : 6.14.5
OS : macOS Catalina
Xcode : Xcode 11.5 Build version 11E608c
% gulp -v
CLI version: 2.3.0
Local version: 3.9.1