Overview
Encore requires user identification to track entitlements and prevent abuse across devices. You can also set user attributes to enable targeted offers and personalization.Anonymous Users
Encore automatically generates a random user ID that persists until the user deletes/reinstalls your app or callsreset().
This anonymous ID allows entitlement tracking to work immediately without requiring explicit user identification.
Identified Users
If you use your own user management system, callidentify() when you have a user’s identity:
- Associate promotional access with your user account
- Sync entitlements across devices when the user logs in
- Track conversion attribution accurately
Resetting User Identity
When a user logs out, callreset():
- Reset the user ID to a new auto-generated anonymous ID
- Clear cached entitlement data
- Clear all user attributes
reset(). It is build-time wiring, not user state, so logging a user out does not require re-registering it.
Setting User Attributes
Strongly recommended. Country and language already shape which offers a user is shown. Once you know who the user is, send what your app already knows, such as country and anything of your own in
custom. Gender is accepted only from an app rated 18+ in its store listing, so leave it out otherwise.setLanguage with the user’s choice.
User attributes enable personalized offers, audience targeting, and conversion context tracking.
Usage
setUserAttributes() merges with existing attributes. It does not replace them.
Implementation Examples
With useEncoreContext Hook
Apps Without Login
If your app doesn’t require users to log in, no additional setup is needed:Next Steps
- Present Offers: present a reward sheet at a moment your user just earned, and read the result