actions-on-google-nodejs icon indicating copy to clipboard operation
actions-on-google-nodejs copied to clipboard

Get continuous location info: DEVICE_PRECISE_LOCATION

Open phaniram-sayapaneni opened this issue 5 years ago • 4 comments

Hello,

Is it possible to get continuous lat, long info for upto 30 minutes, with just 1 permission request. Using DEVICE_PRECISE_LOCATION. In the documentation, it says it would ask for permission. But how to get data continuously with out, asking permission multiple times.

This is to develop actions to enable customers get order delivered as soon as the person reaches the locations. Any help please?

phaniram-sayapaneni avatar Jan 29 '20 22:01 phaniram-sayapaneni

@Fleker need help. Thanks!

phaniram-sayapaneni avatar Jan 30 '20 00:01 phaniram-sayapaneni

No, you need to request permission each time you get the user location.

Fleker avatar Jan 30 '20 15:01 Fleker

But, I want to track the user journey, what if the user is stuck in traffic or had an emergency, this is very important for my application. I only need to track for 30 mins. Can you set a single permission to send location continuously every 1 min for next 30 mins?

phaniram-sayapaneni avatar Jan 30 '20 20:01 phaniram-sayapaneni

No, you need to request permission each time.

Fleker avatar Jan 31 '20 16:01 Fleker