Skip to main content
OneSignal has updated from a device-centric model (Player ID) to a user-centric model (OneSignal ID). For migration guidance, refer to the User Model Migration Guide.For documentation on legacy device-centric implementations, see Version 9.
This page maps method and property names between OneSignal’s Player Model and User Model SDKs. It mirrors the layout of the original Player Model Client SDK Reference for familiarity. Swift examples illustrate the API changes, but these are not always complete working samples. Refer to the linked documentation for examples in other languages and full implementation details.

Initializing OneSignal

initWithLaunchOptions()

Player Model Reference
User Model Reference

Debugging

setLogLevel()

Player Model Reference
User Model Reference

External user IDs

setExternalId()

Player Model Reference
User Model Reference

removeExternalUserId()

Player Model Reference
User Model Reference

Tags

sendTag()

Player Model Reference
User Model Reference

sendTags()

getTags()

deleteTag()

deleteTags()


User data

notificationPermissionStatus

userId

hasNotificationPermission() / areNotificationsEnabled

pushToken

hasNotificationPermission

isSubscribed [Dropped]

User Model: N/A

isPushDisabled [Dropped]

User Model: N/A

setLanguage()


Privacy

setRequiresUserPrivacyConsent()

consentGranted()


Location

setLocationShared()

isLocationShared()

promptLocation()


Subscription observers

addSubscriptionObserver()

removeSubscriptionObserver()


Push notifications

promptForPushNotifications()

postNotification() [Dropped]

User Model: N/A

clearOneSignalNotifications()

disablePush()

unsubscribeWhenNotificationsAreDisabled() [Dropped]

User Model: N/A

setLaunchURLsInApp() [Dropped]

User Model: N/A

registerForProvisionalAuthorization()

setNotificationWillShowInForegroundHandler()

setNotificationOpenedHandler()

addPermissionObserver()

removePermissionObserver()


Live activities

enterLiveActivity()

exit()


In-app messages

addTrigger()

addTriggers()

removeTriggerForKey()

removeTriggerForKeys()

getTriggerValueForKey() [Dropped]

User Model: N/A

inAppMessagesArePaused

setInAppMessageLifecycleHandler()

setInAppMessageClickHandler()


Email

setEmail()

User Model doc

logoutEmail()


SMS

setSMSNumber()

logoutSMSNumber()

addSMSSubscriptionObserver() [Dropped]

User Model: N/A

getSMSId() [Dropped]

User Model: N/A

Outcomes

sendOutcome()

sendOutcomeWithValue()

sendUniqueOutcome()