Plugin to return statusbar height and adjust if there is a notch
npm install cordova-plugin-notch-fix#cordova-plugin-cutout
Detect if the device screen has cutout or notch
cordova plugin add cordova-plugin-cutout
javascript
/**
* @name has
* @returns Promise
*/
cutout.has();
`
Support
$3
Currently devices with Android P or newer are supported. For non supported devices, return value will be false even if the screen may have cutout.
$3
Devices with iOS 11 or higher are supported. Calling this on older devices will just return false` as no older iPhones have cutout.