该应用程序未通过发布前测试(LaunchActivatedEventArgs.PreLaunch)? [英] The app failed prelaunch test (LaunchActivatedEventArgs.PreLaunch)?

查看:53
本文介绍了该应用程序未通过发布前测试(LaunchActivatedEventArgs.PreLaunch)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我获得WACK认证以来已经过了一个月左右。它正在过去但现在却失败了。我可能已经介绍了一些让它失败的认证,但我不太确定。


现在失败的一个原因是它说该应用程序未通过预发布测试。它说可以通过确保在应用程序的OnLaunched方法实现上处理LaunchActivatedEventArgs.PreLaunch选项来解决它。


如何在winJS / JavaScript项目中考虑此事件?为什么此测试现在失败而不是(一两个月)之前?

解决方案



嗨Jaxim,


欢迎
到开发通用Windows应用程序论坛!
 


请阅读粘贴帖子,特别是  引导
到发布:主题行标记
 和  已知
Windows 10 SDK和工具的问题 



你在开发UWP应用程序吗?你使用的是WACK工具吗?能不能描述一下你的问题的更多细节?例如,什么是目标平台
版本?它如果你能分享一个复制项目,会好得多。


>>我如何在winJS / JavaScript项目中考虑此事件?


< p style ="margin-bottom:12.0pt; line-height:13.5pt">   尝试处理这样的事件 


 app.onactivated = function(args:ICustomEvent){ 
if(args.detail.prelaunchActivated){
}
}



>>为什么此测试现在失败而不是(一两个月)?


您是否更改了目标测试平台或更改了测试机?是否已将"Windows应用认证
套件"更新到最新版本?你可以在另一台机器上再试一次吗?





It's been a month or so since I ran the WACK certification. It was passing but now it is failing. I may have introduced something to have it fail certification but I'm not so sure.

One of the things it is now failing is that it is saying that the app failed a prelaunch test. It says that it can be resolved by ensuring that the LaunchActivatedEventArgs.PreLaunch option is handled upon the OnLaunched method implementation of the app.

How do I account for this event in a winJS/JavaScript project? Why is this test failing now and not (a month or two) before? 

解决方案



Hi Jaxim,

Welcome to the Developing Universal Windows apps forum! 

Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools .

Are you developing a UWP app? Did you use a WACK tool? Could you please describe more details about your issue? For example, what is the target platform version? It will be much better if you can share a reproduce project.

>>How do I account for this event in a winJS/JavaScript project?

 Try to handle the event like this 

    app.onactivated = function (args: ICustomEvent) {
        if (args.detail.prelaunchActivated) {
        }
    }



>>Why is this test failing now and not (a month or two) before? 

Have you changed the target testing platform or have you changed the testing machine?  Have you updated the "Windows app certification kit" to the latest version? Could you please test it again in a different machine?



这篇关于该应用程序未通过发布前测试(LaunchActivatedEventArgs.PreLaunch)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆