HarmonyOS 申请长时任务报错9800006 -

BussinessError 9800006: Notification verification failed for a continuous task. The title or text of the notification cannot be empty.

参考demo里的写法,申请长时任务报错,调用的startBackgroundRunning方法,是什么原因?

HarmonyOS
2025-01-09 17:18:01
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
zxjiu

module.json5中skills配置中如果有uris,需要单独用{}包起来

"skills": [
{
  "entities": [
  "entity.system.home"
  ],
  "actions": [
  "action.system.home"
  ],
  //            "uris": [
  //              {
  //                "scheme": "talk",
  //                "host": "talkclient"
  //              }
  //            ]
},
{
  "uris": [
  {
    "scheme": "talk",
  "host": "talkclient"
  }
  ]
}
],
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
分享
微博
QQ
微信
回复
2025-01-09 19:44:57


相关问题
如何申请多个时任务
2901浏览 • 1回复 待解决
HarmonyOS 时任务启动失败9800005
902浏览 • 1回复 待解决
时任务是否阻止系统休眠
875浏览 • 1回复 待解决
HarmonyOS 音视频时任务使用
1026浏览 • 1回复 待解决
音视频播放是否需要创建时任务
2837浏览 • 1回复 待解决
时任务后台运行,保证应用不被挂起
1893浏览 • 1回复 待解决
如何实现短时任务申请和回调?
1047浏览 • 1回复 待解决