Apple Smart Banner(meta apple-itunes-app)无法使用我的应用ID - 也不能在iPhone Safari上清除缓存后.我正在使用这个:
<meta name="apple-itunes-app" content="app-id=632225412">
Run Code Online (Sandbox Code Playgroud)
如果我将应用ID替换为其他任何人,它都可以.
它曾经工作过一段时间,我不确定是什么改变了.也许是iOS7的东西?
1)askForUpdatePermission没有找到意图
我在Github -dialogflow-updates-nodejs上关注了Update Sample 并获得了更新权限.
但是当我将app.askForUpdatePermission("get.next.reminder")添加到我自己的代码中时,模拟器说我的代理没有响应.我没有得到更新权限的问题.
在模拟器错误选项卡中,我看到一个错误:
MalformedResponse
expected_inputs[0].possible_intents[0].input_value_data: The intent the app is asking for permission to send updates for is not found..
Run Code Online (Sandbox Code Playgroud)
所以我在我的代理中再次检查了意图名称(get.next.reminder),它显然在那里并映射到一个动作.我还测试了这个意图可以由用户输入触发.
响应选项卡显示如下响应:
{
"conversationToken": "[\"_actions_on_google_\"]",
"expectUserResponse": true,
"expectedInputs": [
{
"inputPrompt": {
"richInitialPrompt": {
"items": [
{
"simpleResponse": {
"textToSpeech": "PLACEHOLDER_FOR_PERMISSION"
}
}
]
}
},
"possibleIntents": [
{
"intent": "actions.intent.PERMISSION",
"inputValueData": {
"@type": "type.googleapis.com/google.actions.v2.PermissionValueSpec",
"permissions": [
"UPDATE"
],
"updatePermissionValueSpec": {
"intent": "get.next.reminder"
}
}
}
]
}
],
"responseMetadata": {
"status": {
"message": …Run Code Online (Sandbox Code Playgroud)