简体   繁体   English

Google 助理 - askForPermission 从 Google 帐户获取用户电子邮件

[英]Google Assistant - askForPermission to get user email from google account

When i try to connect google actions through google assistant i need to get user email id from google account to perform some Operations.当我尝试通过谷歌助手连接谷歌操作时,我需要从谷歌帐户获取用户电子邮件 ID 以执行一些操作。 For this i try to pops up message to get end user permission to get user email id from google account.为此,我尝试弹出消息以获取最终用户权限,以从 google 帐户获取用户电子邮件 ID。 The below message pops up when user try to access my actions.当用户尝试访问我的操作时会弹出以下消息。

“I'll just need to get your email from Google account. “我只需要从 Google 帐户中获取您的电子邮件。 Is that ok?”这可以吗?”

If user says "yes" then will get user email id or if user says "no" it will reject.如果用户说“是”,则将获得用户电子邮件 ID,或者如果用户说“否”,它将拒绝。

My query is if user says "Thank you" or "fine" then also getting user email id.我的查询是,如果用户说“谢谢”或“很好”,那么还会获取用户电子邮件 ID。 is it expected behavior?这是预期的行为吗? if any document link available for this please share with me.如果有任何可用的文档链接,请与我分享。

Yes, this is expected behaviour.是的,这是预期的行为。

Getting the user's email or other user details is handled via accountlinking.获取用户的电子邮件或其他用户详细信息是通过帐户链接处理的。 I assume you are usingGoogle Sign-in due to the dialogs that are used.由于所使用的对话框,我假设您正在使用Google 登录 The dialogs that are shown to your user when doing this are handled by Google.执行此操作时向用户显示的对话框由 Google 处理。

Google has trained these dialogs quite well to make sure that the users details are only shared when the user agrees to it. Google 对这些对话进行了很好的培训,以确保仅在用户同意时才共享用户详细信息。 If they answer the question with something unrelated, the dialog will reprompt automatically to make sure that user details are only shared if the user really means to do that.如果他们用不相关的东西回答问题,对话框将自动重新提示以确保用户详细信息仅在用户真正想要这样做时才共享。

The words "Thank you" and "Fine" are close enough to a Yes answer, so Google picks this up as a agreement to sharing the details. “谢谢”和“很好”这两个词非常接近“是”的答案,因此 Google 将其作为共享详细信息的协议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM