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
For Safari under iOS 13, the devicemotion and deviceorientation events aren't available without explicit permission from the user, which must be requested in the code before adding the listener. As a result, I can't get anything but a 45-degree still image to show up in the cardboard viewer.
Confirming there is no such feature. And gets worse. IOS 13 supports fullscreen. But the request has to be on a user click and not in a fullscreen callback, it complains about needing user click.
When going fullscreen the notification is hidden by the fullscreen element. Just ridiculous.
Therefore it has to be made before triggering fullscreen within the promise callback. And then fullscreen fails the first time. Second time it magically works.
Only fix. Or trigger this capturing a user click for the application. It will store the request and not popup a notification. On reload orientation works without request.
For Safari under iOS 13, the
devicemotion
anddeviceorientation
events aren't available without explicit permission from the user, which must be requested in the code before adding the listener. As a result, I can't get anything but a 45-degree still image to show up in the cardboard viewer.Here's a related article:
https://dev.to/li/how-to-requestpermission-for-devicemotion-and-deviceorientation-events-in-ios-13-46g2
The text was updated successfully, but these errors were encountered: