Product documentation and training for Shipcode.
Managing User Profiles

Overview

By default, a new user profile is created whenever a user launches your app on their device for the first time. Any attributes passed via the Flagship™ API will be registered to that profile. The profile is connected to the app install. If the user reinstalls the app or installs the app on different devices, they will receive a different profile.

 

It's possible to reconcile a profile across multiple app installs by providing an optional User ID, such as an email address or user id from a user management system. If a User ID is provided, attributes will be synchronized across all app installations in which the identifier is the same.

 

Setting User ID

You may set the User ID at any point in your app's lifecycle. Updating a User ID (e.g. when a user signs in) will cause any Feeds currently displayed to update.

Remember to unset the User ID when the user signs out. You can unset the User ID by passing a nullish value.

 

Android

FlagshipService.getShared().setUserID(YOUR_USER_ID)

 

iOS

FlagshipService.shared.userID = YOUR_USER_ID

 

React Native

// Use the FlagshipService component returned from initializing Flagship
FlagshipService.userID = YOUR_USER_ID;

Privacy Note

Note: User profiles are solely used for the personalization of content within your app and are never shared with third parties.

However, if you aggregate user profile information from other sources or share profile information with data brokers, you may be required to ask permission to track the user prior to establishing a user profile.

If a user opts out of tracking, simply do not set a User ID or any user attributes; only anonymous attributes will be available for personalization for that user.

See Privacy Considerations for more information.

Did this answer your question?