[英]Actions On Google askForNewSurface not switching
当我需要在卡中发送信息时,我正在使用Google nodejs库上的操作来使用askForNewSurface切换到带有屏幕的设备。
我的问题是askForNewSurface似乎可以成功运行,但是对话永远不会切换到其他设备。
无论是在Google模拟器上还是在实际的Google家庭设备上的操作中,设备均指出它们将切换并结束对话,但此后没有任何反应。
这是我用来提示切换的代码:
const hasScreen = app.hasAvailableSurfaceCapabilities(app.SurfaceCapabilities.SCREEN_OUTPUT);
if (hasScreen) {
app.data.newSurfaceTransfer = cardData;
app.askForNewSurface(cardData.sendToScreenMessage, cardData.sendToScreenContext, [app.SurfaceCapabilities.SCREEN_OUTPUT]);
}
我知道此帖子 ,我认为它不适用于我的情况,因为我正在用英语(美国)对其进行测试。
这些是我的依赖版本
"@types/node": "^9.3.0",
"actions-on-google": "^1.7.0",
"body-parser": "^1.18.2",
"dotenv": "^4.0.0",
"express": "^4.16.2",
"firebase": "^4.8.1",
"nodemon": "^1.14.10",
"request": "^2.81.0",
"rx-http-request": "^1.2.0",
"rxjs": "^5.5.6"
在此先感谢您的协助或指导!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.