c# - 当 UWP 应用程序被系统关闭时,如何获取终止或终止事件?
问题描述
在设置中更改联系人访问会终止UWP
应用程序。
当应用程序被系统关闭时如何获取terminating
或事件?terminated
解决方案
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.
推荐阅读
- scala - 在scala中扩展一个类是否也继承了辅助构造函数?
- javascript - 无法使用 ForEach 填充数组
- android - 如何将星期几用作 MPAndroidChart 的右轴标签?
- spring-boot - 适用于 Spring Boot >1.5.20 的 Spring Cloud Stream Kafka Binder 和 Spring Cloud Azure EventHub 兼容版本
- typescript - typescript:具有通用函数集合的通用接口:参数 XXX 和“args”的类型不兼容
- javascript - 递归函数不返回
- c# - AutoFac - 通过继承对象的枚举创建工厂
- node.js - ReferenceError: indexproduct 未定义
- c++ - 如何从同一输入行获得不同的用户输入?
- swift - 变量 UILabel 名称