- Feature flags targeted by user properties
- Feedback that persists across devices for the same user
- Analytics grouped by user rather than device
Identify a user
UserContext
Properties are used for feature flag targeting and segmentation. Common examples:
"plan":"free","pro","business""country":"US","DE","JP""beta_tester":"true""company_size":"50"
Subject ID (subscription sharing unit)
Separate from user identity,setSubjectId links the device to a sharing unit (family/household) for subscription entitlement claims (SDK 2.1.0+, Enterprise):
custom_claims.subscription into the JWT for every device sharing the same id. Use the identical value as the StoreKit appAccountToken and Stripe client_reference_id.
Don’t confuse the two: