How to implement this example :
let device = this.googleAction().getRequest().getDevice();
console.log(device);
this.tell('Thanks for your precise location');
How to implement this example :
let device = this.googleAction().getRequest().getDevice();
console.log(device);
this.tell('Thanks for your precise location');
Did you ask for 'precise location' first as shown in the example you linked?
this.googleAction().askForPreciseLocation('Precise Location pre text');
If a user gives you the permission, it then jumps into the 'ON_PERMISSION' handler, where you can access the information as explained:
if (requestUser.permissions.indexOf('DEVICE_PRECISE_LOCATION') > -1) {
let device = this.googleAction().getRequest().getDevice();
console.log(device);
this.tell('Thanks for your precise location');
}
You can find more information in the Jovo Docs: Google Assistant > Data > ON_PERMISSION.