The CreatorCon Call for Content is officially open! Get started here.

Get current location from mobile agent app

Mateus Lopes
Mega Expert

 

I need to get the current location of the agent in field with the Mobile Agent App.

I already installed it and allowed to collect the geolocation information. It is creating records in the table geo_history from time to time.

I would like to get the current location when the agent opens a Work Order to know if he is already in the location to do the work and, if so, allow him to start work/finish work, otherwise the buttons do not appear. The problem is that I'm not able to find how ServiceNow get this information to store in geo_history table nor can use navigator.geolocation.getCurrentPosition() to get it. Is there a way that I can achive it?

1 REPLY 1

Adarsh Gunjan
Tera Expert

Hi,

Follow this link to get user's current location using SN Android Mobile App

https://www.servicenow.com/community/developer-forum/how-to-get-users-current-location-using-now-mob...

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Adarsh Gunjan