Alex Grigorenko
Alex Grigorenko

Reputation: 403

IOS safari 13.1 permission for DeviceMotionEvent

DeviceMotionEvent.requestPermission work well for the first use. If user cancel access for motion sensors in first time dialog window will not appear for future calls of requestPermission function. And promise is always fulfilled with response === 'denied'.

How to prompt user again?

Upvotes: 2

Views: 550

Answers (1)

Joshua Shen
Joshua Shen

Reputation: 11

I have encountered the same issue today.

Restart Safari will give user a second chance.

Upvotes: 1

Related Questions