Open 4rpit opened 5 years ago
Update to the last version of the package and try this:
const {Permission} = require('actions-on-google');
...
const conv = agent.conv(); // Get Actions on Google library conversation object
conv.ask(new Permission({
context: 'To give results in your area',
permissions: 'DEVICE_PRECISE_LOCATION',
}));
agent.add(conv); // Add Actions on Google library responses to your agent's response
I am trying to get permission to access location by using the below code
I am geeting below error in my fulfilment