Interrupción parcialshare-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
Pregunta realizada hace aproximadamente 12 meses
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

5 de diciembre a la 1:19 a. m.
Respuesta seleccionada
1

We're facing the same issue

6 de diciembre a las 7:33 a. m.
Markus
2

we have also get this error

5 de diciembre a las 6:20 a. m.
Abdul
2

Same here

5 de diciembre a las 10:25 a. m.
Illia
2

We are facing same issue in our game.

5 de diciembre a las 8:11 p. m.
Sujeet
7

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

5 de diciembre a las 2:24 p. m.
Diego
Abdul

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

5 de diciembre a las 8:26 p. m.
Diego

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

5 de diciembre a las 9:13 p. m.
Sujeet

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

5 de diciembre a las 10:27 p. m.
Illia

It is working for us, thank you!

6 de diciembre a las 12:38 a. m.
Vitalii

Yeah, it is working, thank you

6 de diciembre a la 1:22 a. m.
Hugo

work!

6 de diciembre a las 4:40 a. m.
Min

Thank you for your sharing!

6 de diciembre a las 6:41 p. m.