在 module.json5 配置文件,配置 querySchemes,参考
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/module-configuration-file-V5
再使用 bundleManager.canOpenLink 接口来进行判断,参考
建议在拉起应用之后返回的错误信息中处理,错误码是 16000001 时,指定的 ability 不存在,进入应用市场下载。参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-bundlemanager-V5
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-inner-application-uiabilitycontext-V5目前不支持判断应用是否在手机已安装。可以通过bility() 拉起应用