Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 73875

When requesting deviceorientation permission on iOS13, the permission dialog doesn't show the app name

$
0
0

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:

iOS13 orientation permission popup, doesn't show app name

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


Viewing all articles
Browse latest Browse all 73875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>