I needed to get the device orientation, so I am using the deviceorientation
event to detect that. Also I have the below code to get the permission:
if (DeviceOrientationEvent && typeof DeviceOrientationEvent.requestPermission === 'function') {
DeviceOrientationEvent.requestPermission().then((status) => {
if (status === 'granted') {
bindDeviceOrientationEvent();
}
});
} else {
bindDeviceOrientationEvent();
}
But on iOS13, when this triggers the system permission popup, it doesn't show the app name in that. See the below screenshot:
I read many articles and the used syntax are right only. But I am not sure why this happens? Can any one tell me the problem behind this or what I missed here?
Note: after I pressed the Allow button it works properly, and there is no issue on that.
Edited: similar to the below issue, but tried that suggested that also not works: app name doesn't appear in permission request alert