Releases: OneSignal/OneSignal-Cordova-SDK
Release 3.3.2
What's Changed
- Updated included Android SDK from 4.8.5 to 4.8.8
- For full changes, see the native release notes
- Updated included iOS SDK from 3.12.4 to 3.12.9
- Added privacy manifests
- For full changes, see the native release notes
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
5.0.6
What's Changed
Native SDK Updates
- Bump Android Native Version to 5.1.4
Full Changelog: 5.0.5...5.0.6
Release 5.0.5
What's Changed
- Location sharing with OneSignal now defaults to false: You will need to explicitly enable location sharing with OneSignal with OneSignal.Location.setShared(true)
🐛 Bug Fixes
- Fix notification foreground listener preventing notification display - #963
Native SDK Updates
Full Changelog: 5.0.4...5.0.5
Release 5.0.4
Release 5.0.3
What's Changed
Native SDK Updates
Update Android SDK to 5.0.4
- Update PropertiesModel's deserialization of tags to not use Model.initializeFromJson in OneSignal/OneSignal-Android-SDK#1884
- Retrieve current ADM PurchasingListener assuming it returns a nullable. in OneSignal/OneSignal-Android-SDK#1888
- Fix: Add synchronized blocks to prevent ConcurrentModificationException in OneSignal/OneSignal-Android-SDK#1876
- Update work-runtime dependency version in OneSignal/OneSignal-Android-SDK#1890
- General protection against exceptions that occur on a thread. in OneSignal/OneSignal-Android-SDK#1887
Update iOS SDK to 5.0.4
- Fix badge clearing when calling clearAll in OneSignal/OneSignal-iOS-SDK#1335
- Fix crash with direct influence but nil direct id OneSignal/OneSignal-iOS-SDK#1327
- Fix forwarding notification opens from non onesignal notifs OneSignal/OneSignal-iOS-SDK#1326
Full Changelog: 5.0.2...5.0.3
Release 5.0.2
Native SDK Updates
Updated included Android SDK to 5.0.3
- Fix Amazon purchase tracking setup in OneSignal/OneSignal-Android-SDK#1860
- Fix IAMs showing erroneously on every cold start in OneSignal/OneSignal-Android-SDK#1863
Full Changelog: 5.0.1...5.0.2
Release 5.0.1
What's Changed
Native Updates
Updated included Android SDK to 5.0.2
Updated included iOS SDK to 5.0.2
Full Changelog: 5.0.0...5.0.1
Release 5.0.0
⚠️ This is a major release which contains breaking API changes.
In this major version release for the OneSignal Cordova 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.
Note that Identity Verification has not yet been enabled in this version and will be released in a later version
What's Changed Since beta-02
API Updates
setLaunchURLsInApp
has been removed- Rename
OneSignal.init
toOneSignal.initialize
- Rename
OneSignal.Notifications.permission
toOneSignal.Notifications.hasPermission()
- All observers/listeners updated to use
addEventListener
andremoveEventListener
- Rename and fix event types passed to developers' listeners
- Make
InAppMessageClickResult.urlTarget
a string type and fix iOS so it matches Android - Add
OneSignal.Notifications.permissionNative()
method - Add
LogLevel
enum - Add
OneSignal.Notifications.canRequestPermission()
for Android - Export all public types
- In native bridges, check for existence of callbacks before firing and prevent adding any listener more than once
- Use promises instead of callbacks for these methods:
await OneSignal.Location.isShared()
await OneSignal.Notifications.requestPermission(fallbackToSettings?: boolean)
await OneSignal.Notifications.canRequestPermission()
await OneSignal.InAppMessages.getPaused() // which is also renamed from `isPaused`
Native Updates
Updated included Android SDK to 5.0.0
Updated included iOS SDK to 5.0.1
For information please see the migration guide.
Full Changelog: 5.0.0-beta-02...5.0.0
Release 5.0.0-beta-02
🚧 Beta release. Please test thoroughly prior to production use. 🚧
What's Changed Since beta-01
API Updates
Notification, In App Message, and Push Subscription events have been renamed. The migration guide has been updated to reflect the changes.
- Create LiveActivities Namespace
- Update Privacy Methods
- Update Push Subscription API
- Update In-App Messages API
- Update Notifications API
Native Updates
Updated included Android SDK to 5.0.0-beta4
Updated included iOS SDK to 5.0.0-beta-04