You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Apple has changes the policy for motion and orientation settings it is necessary to ask the user for the permission. Without the user permission the orientation function will not work.
I would like to suggest to change the controller code with following code on the happyfuntimes server:
buttonEl.addEventlistener('click', function () {
DeviceMotionEvent.requestPermission().then(response => {
if (response == 'granted') {
window.addEventListener('devicemotion', (e) => {
// do something with e
})
}
}).catch(console.error)
});
Many thanks!
Martin
The text was updated successfully, but these errors were encountered:
Since Apple has changes the policy for motion and orientation settings it is necessary to ask the user for the permission. Without the user permission the orientation function will not work.
I would like to suggest to change the controller code with following code on the happyfuntimes server:
buttonEl.addEventlistener('click', function () {
DeviceMotionEvent.requestPermission().then(response => {
if (response == 'granted') {
window.addEventListener('devicemotion', (e) => {
// do something with e
})
}
}).catch(console.error)
});
Many thanks!
Martin
The text was updated successfully, but these errors were encountered: