Xbox one wireless controller not detected if switched on while game is loading

As the title says I’ve run into an annoying problem. Unity won’t detect my xbox one wireless controller if I turn it on while my game is loading. Everything works fine if I turn it on before I start the game or after it has finished loading and is running. Also if I turn it off and back on it starts working again.

Is there a way to re-detect controllers at runtime?

Do you experience this issue on Windows, Xbox or both?

On windows.