Dialogflow推送通知权限不适用于实际设备,但在模拟器上则可以

时间:2019-05-29 14:59:03

标签: dialogflow actions-on-google

我正在关注Google的推送通知教程。 它在模拟器上运行良好。

此功能可在模拟器上使用:

const setupPushNotification = (conv) => {
    conv.ask(new UpdatePermission({
        intent: "newSales"
    }));
}

从真实设备调用时返回此错误:

Not allowed to ask for permission to send updates for an intent that does not have push updates enabled

我尝试禁用/再次启用推送更新,但是在手机上使用它时仍然出现相同的错误。

可以清楚地找到意图,因为我没有收到此错误:

The intent the app is asking for permission to send updates for is not found.

任何想法,还有其他使我的智能手机上的推送通知许可生效的功能吗? 谢谢!

0 个答案:

没有答案
相关问题