我有一个Windows 8.1应用程序,我需要播放音频,当应用程序在后台和锁定屏幕时。
在Package.appxmanifest中,在声明部分中,我添加了Background Task并将其设置为Audio。到目前为止,当U从应用程序切换到另一个应用程序或桌面时,音频播放仍在继续。
现在我需要在锁屏下继续播放,因此我添加徽章徽标资源,并设置锁屏通知:徽章,以便应用可以在锁屏下工作。但该项目没有建立:
App manifest defines lock screen notifications without specifying one of appropriate background task types: timer, control channel, push notification, or location.
但我不需要任何这些功能主义者。添加一个,比如位置,只是这样构建和工作看起来真的很奇怪。
允许应用在锁屏下播放音频的正确设置是什么?