How get device location using action builder

93 views Asked by At

i'm writing to you to ask a little support about an action that we are currently developing using Action Builder and webhook library @assistant/conversation for Nodejs.

In particular, we would invoke our webhook's logic using the device location. We have understand that we must ask the user permission to access on device location using something like this: https://developers.google.com/assistant/actionssdk/reference/rest/Shared.Types/PermissionValueSpec but in all Github examples provided by Google nothing is specified.

Furthermore, we tried to integrate the PermissionValueSpec in a slot using the notification actions.type.Notifications, but the returned value of that slot is PermissionLocation --> ALREADY_GRANTED without any other information about the device coordinates.

We've read a lot of documentation and also looked for some example to support our develop but nothing was found. How we can get the current device location?

Thank you in advance!

0

There are 0 answers