Table of contents

 


i
This is not the latest version of this document; to access the latest version, click here.
Official Content

This API enables users to provide several Location Services on their Smart Devices Applications by interacting with the GPS on the device where the app is running.

The scenarios that this API resolves are described in the following document. To enable the use of this API many methods, such as GetMyLocation, GetLatitude, GetAddress, etc have been defined and also a new Structure Data Type has been defined, the GeoLocationInfo.

Properties

  • AuthorizationStatus
    • Returns the current authorization status. This can be useful when you are using an API that requires a higher authorization level that the one the user gave. We can warn the user and ask him to go to the settings and add the necessary permission if he currently has minor permission (WhenInUse or Denied).

Methods

*Methods marked with an asterisk only work on the device.

NOTES:

  • In iOS, the Tracking and Proximity Alerts methods need permissions to work in background mode. In order to allow the GeoLocation API to work in the background (when the application is closed or the device locked), the string "App registers for location updates" should be added to the Required Background modes in the info .plist file.

infoplistbgmodes

Availability

Proximity Alerts methods are only available for iOS since GeneXus X Evolution 3 RC (codename: Tilo).


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant