Overview


Purpose

Geolocation API replaces the standard W3C Geolocation API. Its methods and objects are identical to the standard API, however, it provides greater accuracy and responsivity. The API defines a high-level interface to location information delivered by the device, such as latitude and longitude. The API itself is independent of the underlying location information sources, such as GPS and location obtained based on IP address, MAC address, etc.

The Geolocation product module that holds the Geolocation API is included by default at application building stage. Excluding it results in Pega Mobile Client using the standard Geolocation API of the window.navigator object.

On iOS, it asks for a permission to run only once, contrary to the embedded implementation. On Android, in order for this API to function, you must ensure that Google Play Services component has been installed.

Note

If your application uses Iframes, remember to add the top.* element to any reference that you use to call the Pega Mobile Client's Geolocation API. Otherwise you invoke the W3C standard-based Geolocation API, which may lead to unexpected results.

Module

All classes/methods for this API belong to the Geolocation product module.

Legal notice | Copyright © 2017 and Confidential to Pegasystems Inc. All rights reserved
PDN | Pega Mobile Client | Feedback
Advanced...