UWP,Xbox JavaScript应用程序在SignInAsync上失败 [英] UWP, Xbox JavaScript application fails on SignInAsync
问题描述
你好,
我们正在尝试将Xbox Live Service API集成到我们的JavaScript UWP Xbox应用程序中,但在尝试执行SignInAsync时仍然出现错误。
我们已经开始所有步骤来启用Xbox live Creators程序,设置测试帐户和沙箱,我很确定这是正确完成的,
,因为使用SignInSilentlyAsync偶尔会成功。
但是为了确保我们也尝试使用此示例 - https://github.com/jasonsandlin/xbox-live-samples/tree/js/Samples/CreatorsSDK/Social/UWP/JS/Social
(沙盒XDKS .1)具有相同的结果。
But to be sure we have also tried to use this example - https://github.com/jasonsandlin/xbox-live-samples/tree/js/Samples/CreatorsSDK/Social/UWP/JS/Social (sandbox XDKS.1) with the same result.
问题描述:
调用:
var m_user = Microsoft.Xbox.Services.System.XboxLiveUser();
m_user.signInAsync(null).then(function (e) {
if (e.status == Microsoft.Xbox.Services.System.SignInStatus.success) {
}
else if (e.status == Microsoft.Xbox.Services.System.SignInStatus.userCancel) {
}
}, function (err) {
// Sign in always fails
});
}
总是失败并出现以下错误:
" WinRTEError:找不到与此错误代码关联的文本"
- 2146233079
从用户角度看,系统对话框正在打开,但突然消失,错误被抛出 - 请参阅附带的视频:https ://1drv.ms/v/s!AkglAPHznub0lQYJcXGpLklG3EPA
在PC上运行相同的代码至少会打开系统对话框,用户选择会传播回应用程序 - 就像我在Xbox设备上所期望的那样。
在OS版本10.0.16299.3031的几个Xbox设备上测试并使用
Microsoft.Xbox.Live.SDK.WinRT.UWP版本2017.04.20170513.003
非常感谢任何提示。
Tomas
推荐答案
Hi,
JS样本是在开发过程中创建的,用于测试一些基本场景并且不受官方支持,因此已经过时了。
That JS sample is created during the development for testing some basic scenario and is not official supported, thus is outdated.
我们修复了这个样本,你应该拉出来看看它是否正常工作,缺少一块是"XboxLiveCreatorsTitle":xboxservices.config文件中的"true"。
We fixed that sample and you should pull and see it's working, the missing piece is "XboxLiveCreatorsTitle" : true" in xboxservices.config file.
希望它对您的案例有所帮助,我们将研究改善体验以帮助自我诊断。
Hope it would help for your case and we will look into improve the experience to help self-diagnostic.
这篇关于UWP,Xbox JavaScript应用程序在SignInAsync上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!