【无标题】

这里写自定义目录标题

Ohos AppLink防坑指南

  1. ohos applink配置时module.json pathRegex一定不能以/开头,否则会报类似错误
05-14 14:49:41.201  1539  2653 E C01656/foundation/UDMF: UtdClient::GetUniformDataTypesByFilenameExtension invalid fileExtension. fileExtension:.xx/xx/xxx******, belongsTo:#default
05-14 14:49:41.201  1539  2653 E C01120/foundation/BMS: [skill.cpp(MatchUri:425)]regex error
05-14 14:49:41.201  1539  2653 E C01120/foundation/BMS: [skill.cpp(MatchUri:425)]regex error
05-14 14:49:41.201  1539  2653 E C01120/foundation/BMS: [skill.cpp(MatchUri:425)]regex error
05-14 14:49:41.201  1539  2653 E C01120/foundation/BMS: [skill.cpp(MatchUri:425)]regex error 
  1. 验证app domain
    hdc shell hidumper -s AppDomainVerifyManager
  2. 验证本地跳跳转
    hdc shell “aa start -A ohos.want.action.viewData -U ‘https://example.com/xx/xxx’”
  3. 检查服务端是否配置正确配置appId, https://example/.well-known/applinking.json
{
    "applinking": {
        "apps": [
            {
                "appIdentifier": "1111110101854990831"
            }
        ]
    }
}
  1. 检查ohos portal端允许通过的url正则配置是否满足module.json中配置的路径跳转
^https://example\.com/xx/xxx.*
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值