1 个回答

可以通过如下链接查看,https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/module-configuration-file-V5\#skills%E6%A0%87%E7%AD%BE

1、uris和action可以同时存在。不过actions和uris不能在同一个对象中,需要在不同的对象中才可以。

2、以首页的skills为例,下方的skills配置 是可以正常收到消息的 且点击也没有问题:

"skills": [
{
  "entities": [
  "entity.system.home" ],
  "actions": [
  "action.system.home", "action.ohos.push.listener", ]
}
,
{
  "uris": [
  {
    "scheme":
    "https", "port":
    "8080", "host":
    "com.xx.pushsvc.impl", "path":
    "notify_detai"
  }
  ]
}
]
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进