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
赞
收藏 0
回答 1
相关问题
HarmonyOS module.json5中的配置问题
791浏览 • 1回复 待解决
module.json5配置文件中type的含义
1373浏览 • 1回复 待解决
stage模式下,module.json5的配置
1304浏览 • 1回复 待解决
HarmonyOS har包的module.json5配置compressNativeLibs报错
967浏览 • 1回复 待解决
HarmonyOS har类型模块不支持在module.json5中配置pages
1215浏览 • 1回复 待解决
关于app.json5,module.json5中相关配置使用代码获取咨询
1353浏览 • 1回复 待解决
HarmonyOS module.json5中如何通过不同环境配置不同数据
604浏览 • 1回复 待解决
在module.json5 中配置了权限,但是在代码中收不到网络变化的回调
1607浏览 • 1回复 待解决
entry下的module.json5中包含哪些信息?
22661浏览 • 2回复 待解决
HarmonyOS 模块的module.json5 deviceTypes 属性
1432浏览 • 1回复 待解决
HarmonyOS 如何动态修改module.json5中metadata中的数据
719浏览 • 1回复 待解决
HarmonyOS 目标设备的类型与所选模块的module.json5文件中配置的设备类型不匹配
763浏览 • 1回复 待解决
#鸿蒙通关秘籍#如何配置鸿蒙应用中EmbeddedUIExtensionAbility的module.json5文件?
896浏览 • 1回复 待解决
module.json5配置文件中extensionAbilities和requestPermissions的权限声明有何区别
3736浏览 • 1回复 待解决
HarmonyOS module.json5中metadata数据value无法引用string.json中的值
713浏览 • 1回复 待解决
#鸿蒙通关秘籍#在module.json5中注册EmbeddedUIExtensionAbility时,需要注意什么?
664浏览 • 1回复 待解决
#鸿蒙学习大百科#如何在module.json5中引用启动框架配置文件?
828浏览 • 1回复 待解决
HarmonyOS 请问module.json5中,skills标签下的actions,该以哪个值为准?
1133浏览 • 1回复 待解决
#鸿蒙通关秘籍#怎么在module.json5文件中注册BackupExtensionAbility?
884浏览 • 1回复 待解决
#鸿蒙通关秘籍#如何在module.json5中注册BackupExtensionAbility
951浏览 • 1回复 待解决
HarmonyOS app启动可以加文字吗,只能在module.json5里面配置图标
606浏览 • 1回复 待解决
HarmonyOS 工程里的hsp需要的权限需要单独在module.json5里声明吗?
856浏览 • 1回复 待解决
HarmonyOS module.json5 参数支持动态配置吗,比如通过参数读取不同的配置文件,支持不同环境
961浏览 • 1回复 待解决
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/push-send-alert-V5#section8794131614597
设置actions参数完成,点击消息进入应用内页示例(若skills中添加了uris参数,则uris内容需为空)
设置uris参数完成,点击消息进入应用内页示例(skills中必须同时设置actions参数,actions参数为空)+skill[{},{}]。