-
Notifications
You must be signed in to change notification settings - Fork 24
MobileCRM.Platform.getLocation
rescocrm edited this page May 15, 2023
·
4 revisions
Gets current geo-location from platform-specific location service.
If the current platform does not support the location service, the failed handler is called with error "Unsupported".
| Argument | Type | Description |
|---|---|---|
| success | function(result) | A callback function for successful asynchronous result. The result will carry an object with properties latitude, longitude and timestamp . |
| failed | function(error) | A callback function for command failure. The error argument will carry the error message. |
| scope | A scope for calling the callbacks; set "null" to call the callbacks in global scope. | |
| age | Number | Max age in seconds to accept GPS. |
| precision | Number | Desired accuracy in meters. |
| timeout | Number | Timeout in milliseconds (since v10.1). |