Oh yeah, for iOS 13 there is a new call of DeviceOrientationEvent.requestPermission()
that is what is now supposed to be used. I haven’t tried it, but the spec is here:
https://www.w3.org/TR/orientation-event/#dom-deviceorientationevent-requestpermission
If you try it let me know the results .