警报声明给出错误的 UWP 应用程序?

Alarm Declaration giving error UWP App?

我收到以下错误:

Severity Code Description Project File Line Error Error : DEP0700 : Registration of the app failed. AppxManifest.xml(32,10) 0x80080204: The c93686ac-1599-4433-8cfd-8a1d3e588ac8 package cannot register an alarm extension because it does not have the required lock screen capability. (0x80073cf6) HelloRealWorld

我在APPX(Package.appxmanifest)文件中添加了报警声明,但是看不到添加的锁屏功能,我是不是做错了什么?

只需执行以下步骤:

  1. 打开 appxmanifest 设计器,在应用程序选项卡上,将锁屏通知更改为 "Badge"。

  2. 切换到 Visual Assets 选项卡和 select Badge Logo 并指定日志图像。为了测试目的,只需简单地指定默认包含在项目中的LockScreenLogo.png。

这里是截图供大家参考。