问题描述
我构建了一个可以在 XBox 和 PC 上运行的应用。我按照以下说明成功地将 WebAccountManager 和 AccountSettingsPane 添加到应用程序:https://docs.microsoft.com/en-us/windows/uwp/security/web-account-manager。它在我的 Surface 上运行良好。但是,在 XBox 上测试后,没有弹出 AccountSettingsPane。有谁知道 XBox 不支持这个 UWP API?
这是我打开 AccountSettingsPane 的代码。它适用于 PC 和平板电脑,但不适用于 XBox。
有什么想法吗?
解决方法
。但是,在 Xbox 上测试后,没有弹出 AccountSettingsPane。有谁知道 Xbox 不支持这个 UWP API?
请参阅 UWP features not supported on Xbox 文档,Xbox 不支持 AccountSettingsPane
和 WebAccountCommand
API。对于从 UWP 应用程序登录 Xbox,您可以参考此document。