Google 操作 - 权限 PHONE_NUMBER 请求无效

Google Action - Permission PHONE_NUMBER request does not work

在 Google 文档的操作中,我读到您可以询问用户的 phone 号码 (link) by using the 'helper' syntax with a permission request (link)。但这对我不起作用,模拟器停止并告诉我我的 Google 操作无法正常工作。根据文档,我的回复如下所示:

{
 "conversationToken": "TOKEN",
 "expectUserResponse": true,
 "expectedInputs": [
   {
    "inputPrompt": {
      "initialPrompts": [
        {
          "textToSpeech": "PLACEHOLDER_FOR_PERMISSION"
        }
      ],
      "noInputPrompts": []
    },
    "possibleIntents": [
      {
        "intent": "actions.intent.PERMISSION",
        "inputValueData": {
          "@type": "type.googleapis.com/google.actions.v2.PermissionValueSpec",
          "optContext": "To deliver your order",
          "permissions": [
            "PHONE_NUMBER"
          ]
        }
      }
    ]
   }
 ]
}

我这里有什么不对吗?

在您的第二个 link 中,table 与第一个 link 相同,但没有 Phone 数字和更新字段。我知道更新功能仍处于开发者预览阶段,还不能使用。这是我第一次看到通过权限请求 phone 号码的选项,所以我认为它仍在进行中,无法使用。

我们正在努力修复文档中的一个错误。 希望以后我们也能有这个权限。