You need to sign in to do that
Don't have an account?
Gargi Manjee
navigator.geolocation.getCurrentPosition using vf not working for Salesforce1
Dear All,
I have created global action with VF and Controller to get users current location.
It is working fine on web (laptop) but the same code is not working in android.
Kindly help.
I have created global action with VF and Controller to get users current location.
It is working fine on web (laptop) but the same code is not working in android.
Kindly help.
The issue was 'highaccuracy' option was not selected on the device and whereas I was passing highaccuracy = true while calling navigator.geolocation.getCurrentPosition function.
All Answers
Make sure Location Services are enabled on your device.
Thanks,
Thank you for your reply. Yes I have enabled for both Salesforce1 as well as chrome (to confirm if it is not only limited to app) on my Andriod phone.
What else could be the reason?
Regards,
This thing to behave or to display distinct styles primarily based at the box in which this aspect is proven. (Web primarily based Community vs Mobile publisher network you can visit here gamingexpert.net (https://www.gamingexpert.net/) ) Is there a manner to know that my community is regarded on a browser or on the Mobile Publisher container ? I was thinking if there’s a international attribute
The issue was 'highaccuracy' option was not selected on the device and whereas I was passing highaccuracy = true while calling navigator.geolocation.getCurrentPosition function.
I know that this is possible if I create a separate Visualforce page for every single object that I wish to use the action for and then create an object-specific publisher action for each one. But what a lot of clutter for something so simple! (Web-primarily based Community vs Mobile publisher network you can visit here - PC Build (https://thepcbuild.net/).
Is there any way to get the current record Id from within a global Visualforce publisher action? Hacks are welcome!
I hope this will help to get better geolocation of visitors