#鸿蒙通关秘籍#为啥App Linking可以直达受信的目标应用?

HarmonyOS
2024-11-27 14:55:05
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
代码小神童

嗯哼,App Linking通过校验域名来确保安全性,这样就能避免被冒牌应用给截胡了,直达真正的目的应用。

"skills": [
{
"entities": [
// entities必须包含"entity.system.browsable"
"entity.system.browsable",
// 此配置项为样例,请根据实际情况修改
"entity.system.home"
],
"actions": [
// actions必须包含"ohos.want.action.viewData"
"ohos.want.action.viewData",
// 此配置项为样例,请根据实际情况修改
"action.system.home"
],
"uris": [
{
// scheme须配置为https
"scheme": "https",
// host须配置为关联的域名
"host": "www.example.com",
// path可选,如果应用只能处理部分特定的path,则此处应该配置应用所支持的path,避免出现应用不能处理的path链接也被引流到应用中的问题
"path": "path1"
}
],
// 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.
已于2024-12-19 19:10:50修改
分享
微博
QQ
微信
回复
2024-11-27 16:05:09
相关问题