Troubleshooting
hostConnected 一直是 false
- 确认 game 是在 Vifu 中加载的。
- 确认
manifest.json包含companion.plugin.v1。 - 确认 SDK 在 companion feature 使用前已加载。
Command 没有执行
- 在 host request 前注册 command。
- 保持 command state 为
ready。 - 确认
inputSchema与 arguments 匹配。
Context 为空
- 从
read返回 JSON-compatible value。 - 不要返回 DOM node、function 或 circular object。
普通 local browser tab 没有 Vifu host bridge,所以没有反应是 expected behavior。
