凌云移动端跨应用交互
1.0 介绍
移动端应用注册schema
协议,可以使用协议连接直接进入到应用指定界面。
2.0 APP
传参数
参数名 | 参数类型 | 描述 | 示例 |
---|---|---|---|
st | String | token | 例如:yUDN2MjMwcDZwYWMtIDNjhTLhJjY00CZ1AjZtUGZjhjZxYjM |
type | String | 操作类型,不传去到登录页 | 例如:open_micro |
code | String | 页面标识:MicroAppCode |
例如:1450744642503708672 |
biz | String | 传参,json 字符串 |
例如:"{t:\"标题\",c:\"内容\"}" |
协议头:
paispcloud
(凌云、园圈P+
)
ip
:cn.flyrise.spcloud
端口:
8088
目录:
schemaView
参数:
st
、type
、code
、biz
paispcloud://cn.flyrise.spcloud:8088/schemaView?type=open_micro&st=yUDN2MjMwcDZwYWMtIDNjhTLhJjY00CZ1AjZtUGZjhjZxYjM&code=1450744642503708672&biz=333
3.0 H5
打开
<a class="link-layout" target="_blank" :href="`paispcloud://cn.flyrise.spcloud:8088/schemaView?type=open_micro&st=yUDN2MjMwcDZwYWMtIDNjhTLhJjY00CZ1AjZtUGZjhjZxYjM&code=1450744642503708672&biz=333`" style="text-decoration: none;">
<text class="button">打开APP</text>
</a>
4.0 安卓打开
val url= "paispcloud://cn.flyrise.spcloud:8088/schemaView?type=open_micro&st=yUDN2MjMwcDZwYWMtIDNjhTLhJjY00CZ1AjZtUGZjhjZxYjM&code=1450744642503708672&biz=333"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
startActivity(intent)
5.0 iOS
打开
NSString *urlstr = @"paispcloud://cn.flyrise.spcloud:8088/schemaView?type=open_micro&st=yUDN2MjMwcDZwYWMtIDNjhTLhJjY00CZ1AjZtUGZjhjZxYjM&code=1450744642503708672&biz=333";
NSURL *handlbackeUrl = [NSURL URLWithString:urlstr];
[[UIApplication sharedApplication] openURL:handlbackeUrl];
文档更新时间: 2022-04-28 16:34 作者:陈冕