Delay Registrations Until Contact Key is Set on Android

Delaying registrations helps mitigate the possibility of contacts being disassociated from devices. This configuration only registers users when they’re identified. Your application is responsible for configuring the SDK to delay registration until the contact key is set.

Use this configuration mode only in situations where devices must be tied to a specific contact key that represents an individual user. Don’t use this configuration if you intend to set a generic contact key for your devices and users, or if you plan to send messages to unknown or anonymous users.

To delay registration on Android apps, use the setDelayRegistrationUntilContactKeyIsSet method.

This code example shows how to delay registration on Android apps that use SDK version 10 or higher.

This code example shows how to delay registration on Android apps that use SDK version 8.

This code example shows how to delay registration on Android apps that use SDK version 7.