Location Tracking
The Data Cloud Module for the Engagement Mobile SDK supports location tracking for
all events. Enable this functionality using the setLocation method on
the Data Cloud Module to set coordinates and
expiresIn.
iOS
Android
Given that the SDK has non-expired location coordinates, the location attributes are automatically appended to the event attributes key value pairs with key names latitude and longitude.
When the expiration interval has been exceeded, the SDK location coordinates are cleared and longer attached to events. To prevent location from being attached to events before the coordinates expire, call setLocation and pass nil values as the coordinates.