What's Changed
🎉 New Methods 🎉
- Add getter for
onesignalId
andexternalId
and a UserState Observer to be notified of changes in [#1627]- See the User Namespace API Reference in the Migration Guide for usage
- Add asynchronous getter methods for Notifications
permission
and Push Subscriptiontoken
,id
,optedIn
in [#1649]- 🛑 Deprecated methods 🛑
Notifications.hasPermission
,User.pushSubscription.id
,User.pushSubscription.token
, andUser.pushSubscription.optedIn
are now deprecated but non-breaking.
- See the Push Subscription Namespace API Reference and Notifications Namespace API Reference in the Migration Guide for usage of new methods
getPermissionAsync
,getIdAsync
,getTokenAsync
, andgetOptedInAsync
.
- 🛑 Deprecated methods 🛑
⚠️ Minor Breaking Change ⚠️
- API update for PushSubscriptionState: the Push Subscription observer will now be passed nullable properties. Please account for the possibility of the push subscription token and id being null.
Native Changes
Full Changelog: 5.0.6...5.1.0