Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70763

DeviceOrientationEvent in iOS 13 needs User permission

$
0
0

@maxateyedolon wrote:

Dear all,

window.addEventListener(“deviceorientation”, function (event) {

does’t seem to work anymore with iOS 13, maybe because of the needed user permission now.
In normal mobile browsers like Safari and so on, getting user permission by calling

if (typeof DeviceOrientationEvent.requestPermission === 'function') {
   DeviceOrientationEvent.requestPermission()

is working, though it is not supported with Ionic 5 in iOS App.

Any help is much appreciated!

Thank you!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70763

Trending Articles



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