Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Default
shared instance from public api. Instead all fields can be accessed statically on the OneSignal class.RequiresPrivacyConsent
andPrivacyConsent
toConsentRequired
andConsentGiven
addClickListener
andaddForegroundLifecycleListener
from the native code. TheWillDisplay
andClick
event handlers now fire with new arguments. TheWillDisplayEvent
args allow you to prevent default display of the notification by callingpreventDefault()
and then usenotification.display()
to display the notification after having prevented default.PushSubscriptionObserver
. The changed event now provides theprevious
andcurrent
push subscription states.ClickResult
instead of aClickAction
parameter.PermissionNative()
to get the exact permission type for iOS devices.Full Changelog: 5.0.0-beta02...5.0.0-beta03