如何将 UWP 的 WebAccountManager 和 AccountSettingsPane 用于 Xbox 应用程序?

问题描述

我构建了一个可以在 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

enter image description here

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

有什么想法吗?

解决方法

。但是,在 Xbox 上测试后,没有弹出 AccountSettingsPane。有谁知道 Xbox 不支持这个 UWP API?

请参阅 UWP features not supported on Xbox 文档,Xbox 不支持 AccountSettingsPaneWebAccountCommand API。对于从 UWP 应用程序登录 Xbox,您可以参考此document

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...