Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Model Beta 3 release #58

Merged
merged 1 commit into from
Jun 29, 2023
Merged

User Model Beta 3 release #58

merged 1 commit into from
Jun 29, 2023

Conversation

emawby
Copy link
Contributor

@emawby emawby commented Jun 29, 2023

In this major version beta release for the OneSignal SDK, we are making a significant shift from a device-centered model to a user-centered model. A user-centered model allows for more powerful omni-channel integrations within the OneSignal platform.

For information please see the migration guide.

What's Changed Since beta02

  • Updated public API method naming [User model] update public api for new event names #57
    • Removed Default shared instance from public api. Instead all fields can be accessed statically on the OneSignal class.
    • Renamed RequiresPrivacyConsent and PrivacyConsent to ConsentRequired and ConsentGiven
    • Updated trigger value to be string instead of object and updated method signatures
    • Updating Notifications to use addClickListener and addForegroundLifecycleListener from the native code. The WillDisplay and Click event handlers now fire with new arguments. The WillDisplayEvent args allow you to prevent default display of the notification by calling preventDefault() and then use notification.display() to display the notification after having prevented default.
    • The subscription observer is now a PushSubscriptionObserver. The changed event now provides the previous and current push subscription states.
    • In app message click events now have a ClickResult instead of a ClickAction parameter.
    • Added PermissionNative() to get the exact permission type for iOS devices.

Full Changelog: 5.0.0-beta02...5.0.0-beta03

@emawby emawby merged commit 823394c into user-model/main Jun 29, 2023
@emawby emawby deleted the user-model/rel-beta03 branch June 29, 2023 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants