Release 5.1.0
What's Changed
🎉 New Methods 🎉
- Add getter for
onesignalId
andexternalId
and a UserState Observer to be notified of changes in [#959]- 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 [#977]⚠️ Previous methodsNotifications.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
.
Native Changes
Full Changelog: 5.0.6...5.1.0