Get location at runtime

Hello, sorry for english … 

I have an app that take a photo and sends it to the server. 

I would like to get the latitude and longitude within the event “TAP” a button to send the data along with the photo. 

How to get latitude and longitude at runtime, without activating the “location” event? 

Thank you

Hi @aguinaldoaranda,

You can only get the current location from the location event, and that runs on Runtime. You can, however, start checking (start the Runtime listener) only after the user taps the button, although sometimes it can take a few seconds to begin reporting the current location, which may not be ideal for this scenario.

Take care,

Brent

Hi @aguinaldoaranda,

You can only get the current location from the location event, and that runs on Runtime. You can, however, start checking (start the Runtime listener) only after the user taps the button, although sometimes it can take a few seconds to begin reporting the current location, which may not be ideal for this scenario.

Take care,

Brent