[Webkit-unassigned] [Bug 203287] Gyroscope (DeviceMotion related) permission can not be requested

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 30 13:10:41 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=203287

--- Comment #10 from Chris Dumez <cdumez at apple.com> ---
(In reply to distinctdan from comment #9)
> Hi all, I'm having this issue too with my app. I'm running a tilt-controlled
> game that runs in a wkwebview using cordova. Cordova serves over the file://
> protocol, which from the comments here sounds like it should work. However,
> I get the error:
> 
> No device motion or orientation events will be fired until permission has
> been requested and granted.
> 
> I can request permission, which does work, but it's a terrible user
> experience for me to have to prompt my users every time they open the app.

If you are seeing a need for permission then you are likely using SafariViewController (SVC), not WKWebView. The need for permission in SVC is intended, for consistency with Safari. Only WKWebView is exempt at the moment.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191130/385febec/attachment.htm>


More information about the webkit-unassigned mailing list