【发布时间】:2022-08-02 21:08:12
【问题描述】:
我创建了一个智能家居操作,我必须实现 requestSync 功能以进行认证。 但我不明白从哪里调用它:从我的后端实现?还是来自其他地方? 在文档中,我看到:
You must trigger a SYNC request:
- If the user adds a new device.
- If the user removes an existing device.
- If the user renames an existing device.
- If you implement a new device type, trait, or add a new device feature.
但是所有这些用户交互都来自 Google 方面(在 Google Home 应用程序中),所以我不明白为什么 Google 不自己触发同步,我的后端怎么知道用户改变了一些东西?
有人可以帮助我使用此功能吗? 谢谢 !