首页 > 解决方案 > 当 UWP 应用程序被系统关闭时,如何获取终止或终止事件?

问题描述

在设置中更改联系人访问会终止UWP应用程序。

当应用程序被系统关闭时如何获取terminating或事件?terminated

标签: c#.neteventsuwpwindows-10

解决方案


Changing contacts access in settings terminates UWP application.

@Peter Torr - MSFT was correct. This behavior is by design. When you change the privacy settings, it's just forced to restart with the new privacy settings. But currently UWP apps could not do the restart by the controller outside the app container, so it has been terminated.

But in that case application should be notified or must be restarted.

You could submit a 'Feature Request' on WPDev UserVoice.


推荐阅读