[英]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.