AppLinking配置与推送通知配置存在冲突问题,如果在skill中配置了uris会导致消息推送失败,如果不配置uris会导致AppLinking跳转无法使用,module.json5配置如下:
{
"name": "TestAbility",
"srcEntry": "./ets/abilities/TestAbility.ets",
"exported": false,
"startWindowIcon": "$media:icon",
"startWindowBackground": "$color:start_window_background",
"skills": [
{
"actions": [
"action.system.home",
// 极光推送需要此字段
"ohos.want.action.viewData"
// 微博跳转配置
],
// 目前推送和AppLinking配置存在互斥,如果在skill中配置了uris会导致接入的第三方库【极光推送】无法正常接收到通知,如果不配置uris会导致AppLinking配置失效
"uris": [
// appLink的配置
{
"scheme": "https",
// scheme须配置为https
"host": "xxx.xxx.com",
// host须配置为关联的域名
"path": "open"
// path可选,为了避免匹配到多个应用,建议配置该字段【可选字段】
}
]
}
]
}