企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
用户可以通过scheme机制,跳转打开我们的app,并进入对应的功能页面,具体实现方式如下: 首先,需要获取app的包名:通过我们后端提供的[相应接口](https://www.kancloud.cn/tianma360/admin/1083397),获取对应的APP包名, 1,打开app ``` <a href="tmapp://此处替换为您的包名/openwith">打开app</a> ``` 例如 tmapp://com.tenma.ventures.tianmagongchang/openwith 就能打开天马工场app 2,打开APP对应的功能页面 地址格式如下: ``` "tmapp://此处替换为您的包名/openwith?native=true&src=com.tenma.ventures.usercenter.PersonalDataActivity&参数key1=参数value1&参数key2=t参数值value2" ``` 参数说明如下: native:true表示打开原生页面,false表示打开H5页面 src:如果原生页面表示页面的Activity类名,如果是H5页面则表示H5的链接地址 参数:原生页面会把参数组装成Json对象,以"param"为key,Json对象的字符串为value通过Bundle传递到对应的Activity。 原生页面使用示例: ``` tmapp://com.tenma.ventures.tianmagongchang/openwith?native=true&src=com.tenma.ventures.usercenter.PersonalDataActivity&param=2&param2=true" ``` H5页面使用示例: ``` tmapp://com.tenma.ventures.tianmagongchang/openwith?native=false&src=https://www.baidu.com" ```