ac
ac.developer.openMiniApp
Open an installed MiniApp or install then open a target MiniApp for testing.
权限:developer
宿主 API
功能描述
Open an installed MiniApp or install then open a target MiniApp for testing.
调用方式
const result = await ac.developer.openMiniApp({
"installationId": "string",
"installation_id": "string",
"miniappId": "string",
"miniapp_id": "string",
"versionId": "string",
"version_id": "string"
});
参数说明
| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
installationId | string | 否 | - |
installation_id | string | 否 | - |
miniappId | string | 否 | - |
miniapp_id | string | 否 | - |
versionId | string | 否 | - |
version_id | string | 否 | - |
{
"type": "object",
"properties": {
"installationId": {
"type": "string"
},
"installation_id": {
"type": "string"
},
"miniappId": {
"type": "string"
},
"miniapp_id": {
"type": "string"
},
"versionId": {
"type": "string"
},
"version_id": {
"type": "string"
}
}
}
返回值
{
"type": "object"
}
错误码
该 API 当前没有声明专属错误码。
Manifest 声明
Agent 生成小程序时,如果页面会调用该 API,应在 manifest.apisUsed 中声明完整 API 名称。
{
"permissions": [
"developer"
],
"apisUsed": [
"ac.developer.openMiniApp"
]
}
平台支持
| 平台 | 支持情况 |
|---|---|
| Web | 支持 |
| Android SDK | 支持 |
| iOS SDK | 支持 |
| Flutter SDK | 支持 |