HarmonyOS AppLinking与推送在module.json5中的配置冲突

在module.json5中配置了uris的内容,结果配置后发现收不到推送了,还请协助排查。当前module.json5配置如下,如下把uris删除则能正常收到推送,但是AppLinking不能用了。

"abilities": [
{
  "name": "EntryAbility",
"srcEntry": "./ets/entryability/EntryAbility.ets",
"description": "$string:EntryAbility_desc",
"icon": "$media:app_icon",
"label": "$string:app_name",
"startWindowIcon": "$media:start_window_icon",
"orientation": "unspecified",
"startWindowBackground": "$color:start_window_background",
"supportWindowMode": ["fullscreen"],
  "exported": true,
"skills": [
  {
    "entities": [
    "entity.system.home",
    "entity.system.browsable"
    ],
    "actions": [
    "action.system.home",
    "ohos.want.action.viewData",
    "ohos.nfc.tag.action.TAG_FOUND",
    //推送通知类消息接收
    "com.xxx",
    //推送后台消息接收
    "action.ohos.push.listener"
    ],
    "uris": [
    {
      "scheme": "cmblife"
    },
    {
      "scheme": "http",
    "host": "cmbt.cn",
    "path": "/c"
    },
    {
      "scheme": "http",
    "host": "cmbt.cn",
    "pathStartWith": "/c/"
    },
    {
      "scheme": "https",
    "host": "cmbt.cn",
    "path": "/c"
    },
    {
      "scheme": "https",
    "host": "cmbt.cn",
    "pathStartWith": "/c/"
    },
    {
      "scheme": "https",
    "host": "open.cmbchina.com",
    "pathStartWith": "/dispatch/"
    },
    {
      "scheme": "https",
    "host": "sandbox.cdcc.cmbchina.com",
    "pathStartWith": "/dispatch/"
    }
    ],
    // domainVerify须设置为true
    "domainVerify": true
  }
  ]
}
],
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
HarmonyOS
2024-12-23 16:40:37
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
superinsect

https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/push-send-alert-V5#section8794131614597

设置actions参数完成,点击消息进入应用内页示例(若skills中添加了uris参数,则uris内容需为空)

设置uris参数完成,点击消息进入应用内页示例(skills中必须同时设置actions参数,actions参数为空)+skill[{},{}]。

分享
微博
QQ
微信
回复
2024-12-23 19:55:21
相关问题
HarmonyOS module.json5配置问题
791浏览 • 1回复 待解决
module.json5配置文件type含义
1373浏览 • 1回复 待解决
stage模式下,module.json5配置
1304浏览 • 1回复 待解决
entry下module.json5包含哪些信息?
22661浏览 • 2回复 待解决