可参考如下代码:{ "module": { "name": "entry", "type": "entry", "description": "$string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ "phone", "2in1" ], "metadata": [ { "name": "client_id", "value": "109834877" } ], "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:main_pages", "abilities": [ { "name": "EntryAbility", "srcEntry": "./ets/entryability/EntryAbility.ets", "description": "$string:EntryAbility_desc", "icon": "$media:icon_json", "label": "$string:EntryAbility_label", "startWindowIcon": "$media:icon_json", "startWindowBackground": "$color:start_window_background", "exported": true, "skills": [ // applink 的skills { "entities": [ "entity.system.home", "entity.system.browsable" ], "actions": [ "action.system.home", "ohos.want.action.viewData" ], "uris": [ { "scheme": "sohunews", "host": "pr", }, { "scheme": "https", "host": "test3g.k.sohu.com", } ], // domainVerify须设置为true "domainVerify": true }, // push 的skills 设置uris参数完成点击消息进入应用内页示例 // 设置完成后需要https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/push-send-alert-V5#section8794131614597 参照2 配置对应的clickAction { "actions": [""], "uris": [ { "scheme": "https", "host": "www.test.com", "port": "8080", "path": "push/test" } ] } ] } ], "requestPermissions": [ { "name": "ohos.permission.GET_BUNDLE_INFO" }, { "name": "ohos.permission.INTERNET" } ] } }
可参考如下代码: