Understand the User-Centered Model (v5.x.x)
mainOneSignal v5.x.x shifts from a device-centered model to a user-centered model. This replaces the legacy "player" concept with three core abstractions:
- Users: Represents the end-user. A user can have zero or more subscriptions and can be identified by one or more aliases (key-value pairs). Users can also have data tags for attribution.
- Subscriptions: The method by which a user receives communications (Push, SMS, or Email). A single user can own one Push Subscription and multiple Email/SMS subscriptions. The
subscription_idis the new term for the legacyplayer_id. - Aliases: Evolved from "external user ids". An alias consists of an alias label (the key) and an alias id (the value). OneSignal uses a built-in label
external_idto support existing external user ID workflows.