Bug 214336

Summary: Bluetooth Game Controllers Unresponsive in Progressive Web Application on iOS 14 Beta 2
Product: WebKit Reporter: goehdavi
Component: WebKit APIAssignee: 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   

Description goehdavi 2020-07-14 19:39:37 PDT
Game controllers work in Safari, but not in a Progressive Web App using the Add to Home Screen functionality.
Comment 1 goehdavi 2020-07-14 20:36:08 PDT
Opening https://gamepad-tester.com/ in the PWA standalone mode reveals that game controllers are not showing up.
Comment 2 Radar WebKit Bug Importer 2020-07-14 22:28:28 PDT
<rdar://problem/65586008>
Comment 3 goehdavi 2020-07-15 15:37:18 PDT
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
Comment 4 goehdavi 2020-07-15 22:58:10 PDT
This could also potentially be a first responder issue if the WKWebView in Web.app is not becoming the first responder.
Comment 5 Brady Eidson 2020-07-23 08:59:18 PDT
(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.
Comment 6 goehdavi 2020-07-23 13:28:26 PDT
Thanks! Verified that it is working in beta 3.