Register Contacts in iOS Apps that use SDK Version 10

The process of registering contacts by setting the value of the Contact Key has been updated in version 10 of the SDK. To upgrade your app to version 10 of the SDK, first update the initialization code. Then, use this code example to update the contact registration code in your app.

1// Set contact key for mobile push module
2SFMCSdk.identity.edit { [self] model in
3  model.profileId = "user@example.com"
4  return model
5}
6// Retrieve the contact key
7SFMCSdk.identity.get()?.profileId