简体   繁体   English

WL.App.close在Windows Phone8 Mobilefirst 6.3应用程序中不起作用

[英]WL.App.close doesnt work in a windows phone8 mobilefirst 6.3 app

我试图关闭在Android和ios上运行的mobilefirst 6.3混合应用程序,但是在Windows Phone中, WL.App.close方法没有任何作用,如何在Windows Phone 8中关闭混合mobilefirst应用程序。

The WL.App.close API method is in fact not supposed to do anything really anymore even in iOS and Android, as it is no longer considered a best practice in those platforms to force-close an application. 实际上,即使在iOS和Android中, WL.App.close API方法实际上也不应做任何事情,因为在那些平台上,不再强制将其关闭是一种最佳实践。 It is an action that the user must do. 这是用户必须执行的操作。

It looks to me like the same is applied to Windows Phone: https://msdn.microsoft.com/en-us/library/windows/apps/dn148258(v=vs.105).aspx 在我看来,这似乎适用于Windows Phone: https : //msdn.microsoft.com/zh-cn/library/windows/apps/dn148258(v=vs.105).aspx

You may be able to do the following, though: How to exit or quit my Windows Phone 8 app programmatically? 但是,您也许可以执行以下操作: 如何以编程方式退出或退出Windows Phone 8应用程序?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM