This plugin is intended for requesting the screen overlay permission on Android.
cordova plugin add cordova-plugin-overlay
ionic cordova plugin add cordova-plugin-overlay
npm install cordova-plugin-overlay
Overlay.canOverlayScreen()
.then(function (result) {
// true, false
});
Overlay.openOverlaySetting()
.then(function (result) {
// true, false
});