Partial Outageshare-external
DOMException: Failed to execute 'getGamepads' on 'Navigator': Access to the feature "gamepad" is disallowed by permissions policy.
12

We are randomly getting this error while loading the game

DOMException: Failed to execute 'getGamepads' on 'Navigator': Access to the feature "gamepad" is disallowed by permissions policy.

Issue is happening only on Facebook. Facebook seems to be adding gamepad=() in Permissions-Policy which breaks the game.

This seems to be happening with many other games on Facebook. Has anyone found any fix or workaround for this issue?

Gaurang
Asked about 12 months ago
Alexey

we have the same problem. occurs more often in Chrome. it started suddenly about 12 hours ago without any action on our part.

if we clean the cache, the game will start once, but after rebooting, the error will appear again

December 5 at 1:19 AM
Selected Answer
1

We're facing the same issue

December 6 at 7:33 AM
Markus
2

we have also get this error

December 5 at 6:20 AM
Abdul
2

Same here

December 5 at 10:25 AM
Illia
2

We are facing same issue in our game.

December 5 at 8:11 PM
Sujeet
7

in our case (unity webgl game) this workaround worked for us: navigator.getGamepads = null;

December 5 at 2:24 PM
Diego
Abdul

can you share the file or tell us where to add this

December 5 at 8:26 PM
Diego

this line of javascript code need to be executed before the file which is causing the error be loaded

December 5 at 9:13 PM
Sujeet

We did this change in javascript file which loads Unity and its working now. Thanks for the workaround.

December 5 at 10:27 PM
Illia

It is working for us, thank you!

December 6 at 12:38 AM
Vitalii

Yeah, it is working, thank you

December 6 at 1:22 AM
Hugo

work!

December 6 at 4:40 AM
Min

Thank you for your sharing!

December 6 at 6:41 PM