简体   繁体   中英

Google Assistant Actions - Device Location

How can I get user device location (lat, lng) in Google Actions? I have found some examples using actions-on-google library to ask user for permission and get device location. But when creating a new project it is using @assistant/conversation instead of actions-on-google . If I understand correctly, this conversation lib is a new standard and I should be using it. Unfortunately, I cannot find any information about permissions or device location in @assistant/conversation . Is there some other library I should use? Or maybe it is still in development and I should stick to older actions-on-google until it will be ready?

谷歌发布了他们的谷歌操作文档的更新,现在有一个部分如何请求和获取用户的位置,请看这里: https : //developers.google.com/assistant/conversational/permissions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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