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
Gautam Manchanda 12Gautam Manchanda 12 

navigator.geolocation.getCurrentPosition(success,error,options) returns me undefined while trying to access through salesforce mobile app

Hi All,

I am having a trouble while trying to get my Geolocation through Salesforce1 app. It works fine while trying to access the same in mobile browser but it fails to load the position when I try the same thing through the app. navigator.geolocation.getCurrentPosition(success) returns me Undefined.

Any help will be greatly appreciated!