Compare method and property names between OneSignal’s legacy Player Model (v3 & v4) and the modern User Model (v5+), with side-by-side Swift code examples for easier migration.
initWithLaunchOptions()setLogLevel()setExternalId()removeExternalUserId()sendTag()sendTags()getTags()deleteTag()deleteTags()notificationPermissionStatususerIdhasNotificationPermission() / areNotificationsEnabledpushTokenhasNotificationPermissionisSubscribed [Dropped]isPushDisabled [Dropped]setLanguage()setRequiresUserPrivacyConsent()consentGranted()setLocationShared()isLocationShared()promptLocation()addSubscriptionObserver()removeSubscriptionObserver()promptForPushNotifications()postNotification() [Dropped]clearOneSignalNotifications()disablePush()unsubscribeWhenNotificationsAreDisabled() [Dropped]setLaunchURLsInApp() [Dropped]registerForProvisionalAuthorization()setNotificationWillShowInForegroundHandler()setNotificationOpenedHandler()addPermissionObserver()removePermissionObserver()enterLiveActivity()exit()addTrigger()addTriggers()removeTriggerForKey()removeTriggerForKeys()getTriggerValueForKey() [Dropped]inAppMessagesArePausedsetInAppMessageLifecycleHandler()setInAppMessageClickHandler()setEmail()logoutEmail()setSMSNumber()logoutSMSNumber()addSMSSubscriptionObserver() [Dropped]getSMSId() [Dropped]sendOutcome()sendOutcomeWithValue()sendUniqueOutcome()