Search code examples
uwpmicrosoft-graph-apiwindows-runtimexbox

How to use UWP's WebAccountManager and AccountSettingsPane for an Xbox app?


I built an app that runs on Xbox and PCs. I successfully added WebAccountManager and AccountSettingsPane to the app following these instructions: https://learn.microsoft.com/en-us/windows/uwp/security/web-account-manager. It works great on my Surface. However, after testing on Xbox, the AccountSettingsPane does not pop up. Does anyone know if Xbox doesn't support this UWP API?

Here is my code for opening the AccountSettingsPane. It works on PCs and tablets, but not Xbox. enter image description here

Source: https://github.com/jenius-apps/ambie/blob/de2493109a618aa8723df499c469a6741d20216d/src/AmbientSounds.Uwp/Services/MsaAuthClient.cs#L131-L140

Any ideas?


Solution

  • . However, after testing on Xbox, the AccountSettingsPane does not pop up. Does anyone know if Xbox doesn't support this UWP API?

    Please refer UWP features not supported on Xbox document, AccountSettingsPane and WebAccountCommand APIs are not supported on Xbox. For login Xbox from UWP app, you could refer this document.