function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Raghu Natha 2Raghu Natha 2 

How do I get the current location of a user from his mobile ?

Can I build a lightning component which can get the current location of a user from his mobile.

Thanks you,
Raghu
Best Answer chosen by Raghu Natha 2
Khan AnasKhan Anas (Salesforce Developers) 
Hi Raghu,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/89372/how-to-get-geolocation-in-a-lightning-component

https://developer.salesforce.com/forums/?id=906F0000000BU4sIAG

https://icodecloud.blogspot.com/2016/08/lightning-component-on-geolocation.html

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas