Bug 214336
| Summary: | Bluetooth Game Controllers Unresponsive in Progressive Web Application on iOS 14 Beta 2 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | goehdavi |
| Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Critical | CC: | beidson, webkit-bug-importer |
| Priority: | P1 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | iPhone / iPad | ||
| OS: | Other | ||
goehdavi
Game controllers work in Safari, but not in a Progressive Web App using the Add to Home Screen functionality.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
goehdavi
Opening https://gamepad-tester.com/ in the PWA standalone mode reveals that game controllers are not showing up.
Radar WebKit Bug Importer
<rdar://problem/65586008>
goehdavi
Looks like PWAs on iOS are WKWebView based: https://bugs.webkit.org/show_bug.cgi?id=185448
and looks like GamePad API support was never added to WKWebView:
https://bugs.webkit.org/show_bug.cgi?id=205448
goehdavi
This could also potentially be a first responder issue if the WKWebView in Web.app is not becoming the first responder.
Brady Eidson
(In reply to goehdavi from comment #3)
> Looks like PWAs on iOS are WKWebView based:
> https://bugs.webkit.org/show_bug.cgi?id=185448
>
> and looks like GamePad API support was never added to WKWebView:
> https://bugs.webkit.org/show_bug.cgi?id=205448
That one fell through the cracks, and is simply not true - Of course they work in WKWebView, because Safari uses WKWebView.
We heard another report from someone else a bit before you filed that gamepads weren't working in Save to Homescreen Web Apps on iOS.
Multiple engineers verified internally that on iOS 14 beta 3 (released yesterday) they work as expected. Please give it a shot on the new beta.
goehdavi
Thanks! Verified that it is working in beta 3.