Introduction to Aliases
Crowd Connected uses an internally generated unique identifier for each app install. This is made available to the app in the status callback when the library is started.
Many use cases for background location data collection (including analytics and message targeting) will require associating location data with another device ID, like a push messaging provider ID, or a username.
These alternative IDs can be set using the alias feature. And aliases can then be used in the results of analytics queries, or when sending messages to devices.
Aliases must not include commas, semicolons, or quotation marks.
Sending an Alias
Do not attempt on sending aliases or starting a navigation session until the startup completion callback has been called with a valid device ID.
In order to set an alias for the current device, simply call the following library method:
CrowdConnected.shared.setAlias(key: “YOUR_KEY, value: ”YOUR_VALUE”)
Aliases used for messaging
Crowd Connected has built-in support for a number of common push notification providers. To make use of the built-in support, you must use the correct alias key. These are documented in the Device Alias guide.