Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

For example,

On click of a button, Salesforce1 App tracks user location & update/create a field/record in Salesforce with location information.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You can use Google Directions API and the HTML5 Geolocation API. The Geolocation API is able to retrieve the latitude and longitude of the device’s position.

http://blogs.developerforce.com/developer-relations/2013/12/extend-your-salesforce1-app-with-mobile-cards.html

share|improve this answer

Salesforce1 app can be customized using publisher actions, custom tabs and mobile cards on object page layout. You can create a Visualforce page which can grab user location using javascript Geolocation API and fetch address or longitude latitude of device, which can be used to update details in associated Salesforce record same way we do in normal visualforce pages.

Google's Map is the best way to fetch user address from the location fetched from device.

There is a post similar to this: http://intmist.wordpress.com/2014/03/23/show-custom-visualforce-page-in-salesforce1-setup-publisher-action-and-check-in-using-salesforce1-app/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.