Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Track the user's current location on Dynamics 365 mobile app

(0) ShareShare
ReportReport
Posted on by 680
Hi,
 
We got a requirement from a customer to track the user's current location, so we've developed an application using HTML web resources with AngularJS. We have deployed it as a web resource and called it from the ribbon button and dashboard within the Dynamics 365 mobile app. To track the user's location, we used the following code.

navigator.geolocation.getCurrentPosition(function (locat) {
var latitude = locat.coords.latitude;
var longitude = locat.coords.longitude;
}

We call this code recursively to continuously track the user's current location, and we are able to retrieve the current location when a user is using our application. When the user minimizes our application or the Dynamics 365 app, tracking stops. Is there a way to continuously track the user's current location even when the app is minimized.

Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans