Set the Party Identifier

The party identifier is a unique identifier that represents an individual in Marketing Cloud. It can be a customer ID, mobile number, email address, loyalty number, or another value.

Skip this step if you want to send only to anonymous users. For an anonymous user, the party identifier is a random GUID.

To set the party identifier for Android apps, use this code example.

To set the party identifier for iOS apps, use this code example.

Optimize API calls to Marketing Cloud Next by updating the locally stored Individual record only when your app is in the foreground. If your app is in the background, the SDK initializes to show a notification or to pre-cache messages, resulting in unnecessary communication with Marketing Cloud Next.