Delay Registrations Until Contact Key is Set on iOS
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 iOS apps, use the setDelayRegistrationUntilContactKeyIsSet method in version 11 of the SDK, or its equivalent in earlier versions of the SDK.
This code example shows how to delay registration on iOS apps that use SDK version 10 or higher.
This code example shows how to delay registration on iOS apps that use SDK version 8.
In the Objective-C SDK 8.x for iOS, use the configuration builder with setDelayRegistrationUntilContactKeyIsSet:@(YES)
This code example shows how to delay registration on iOS apps that use SDK version 7.
In the Objective-C SDK version 7.x for iOS, use the configuration builder with sfmc_setDelayRegistrationUntilContactKeyIsSet:@(YES).