Aframe: for those having issues regarding motion and orientation for IOS 13+

Created on 24 Sep 2019  路  5Comments  路  Source: aframevr/aframe

i have recently updated my iphone. I found this article to be helpful. my a-frame project worked the way it worked before updating to IOS 13.

https://medium.com/@leemartin/how-to-request-device-motion-and-orientation-permission-in-ios-13-74fc9d6cd140

Screen Shot 2019-09-24 at 12 49 10 PM

Most helpful comment

The call to requestPermission has to be triggered by a user gesture like a click or a tap. See 8th wall UI as an example (cancel/continue dialog):

https://apps.8thwall.com/8w/jini/

All 5 comments

It seems it needs to be triggered by user gesture so it won鈥檛 work on load as before, right?

Yep, it needs a user gesture for a "granted" response.

Following https://medium.com/@leemartin/how-to-request-device-motion-and-orientation-permission-in-ios-13-74fc9d6cd140, I got errors that says the following:

NotAllowedError: Requesting device orientation or motion access requires a user gesture to prompt

I clicked the touch-screen. I used a finger to swipe the touch-screen. Both of these actions did not cause permission requesting prompt to show up.

What is a user gesture? How can a user initiate one?

The call to requestPermission has to be triggered by a user gesture like a click or a tap. See 8th wall UI as an example (cancel/continue dialog):

https://apps.8thwall.com/8w/jini/

Was this page helpful?
0 / 5 - 0 ratings