收藏
回答

使用鸿蒙api是context.openLink,打开微信后,没有拉起添加企微的页面,该怎么处理?

let context = this.getUIContext().getHostContext() as common.UIAbilityContext;


let link: string = targetUrl
let openLinkOptions: OpenLinkOptions = {
  appLinkingOnly: false
};

try {
  context.openLink(link, openLinkOptions)
    .then(() => {
    }).catch((err: BusinessError) => {
  });
} catch (paramError) {
}


回答关注问题邀请回答
收藏

2 个回答

  • 糖果🍬
    糖果🍬
    2025-09-17

    那鸿蒙支持通过获客链接schema,拉起添加企微页面吗,目前ios和安卓是可以拉起

    2025-09-17
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    2025-09-17
    有用
登录 后发表内容