微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决如何将 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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。