Hello!
In ios 12 apple introduced the pesky checkbox in settings for allowing device motion, which meant that we did not have any way but making the user go into settings and enabling this feature.
But now in ios 13 they have removed that checkbox and now you have to ask permission for the different apis.
i just tried 1.20 against ios 13 and it doesn't seem to ask for permission, so this is something that needs fixing.
Something like this is needed
if (typeof DeviceOrientationEvent.requestPermission === 'function') {
document.body.addEventListener('click', function () {
DeviceOrientationEvent.requestPermission()
.then(function() {
console.log('DeviceOrientationEvent, DeviceMotionEvent enabled');
})
.catch(function (error) {
console.warn('DeviceOrientationEvent, DeviceMotionEvent not enabled', error);
})
}, {once: true});
return;
}