Releases: OneSignal/OneSignal-Android-SDK
Releases · OneSignal/OneSignal-Android-SDK
3.6.1 Release
Misc bug fixes
- Fixed crash when a priority notification with a remote resource is received on Android O when targeting API 26.
- Fixed NPE when calling
setLocationShared
before OneSignal is initialized. - Fixed rare NPE when using a
NotificationExtenderService
.
3.6.0 Release
Android Oreo (8.0)
Must upgrade to this version when targeting API level 26.
- Added support for Android O Notification Channels.
- Also know as Notification Categories.
- See OneSignal's guide on setting these up.
- Dropped Android 2.3 (API 9) support, minimum is now 4.0.3 (API 15).
- If support is still needed, recommend creating a new target using SDK 3.5.8.
3.5.8 Release
3.5.7 Release
Bug fixes and summary notification improvements
- Fixed GoogleApiClient is not connected yet error. Issue #241
- Fixed ANR during intermittent network connections. Issue #237
- Fixed idsAvailable NPE when called from another thread right after init. Issue #231
- Added datetime stamp to Android 7 notifications. Issue #236
- Overrides to message body, title, and sound now work with summary notifications. Issue #68
3.5.6 Release
- Added
cancelGroupedNotifications
method. Request #57 - Fixed rare location event race condition crash.
- Updated Unity wrapper for observer methods
3.5.5 Release
Fixed Duplicated Action Buttons and Get Tags
- Fixed issue where duplicated action buttons would show on the notification if a group was also set on Android 4.1 through 6.
- Fixed bug where
getTags
would not include tags from the server on the first call.
3.5.4 Release
Proguard fixes and filter option for other GCM receivers
- Added
filterOtherGCMReceivers
init builder method- Set
true
to filter out OneSignal payloads from other GCM receivers.
- Set
- Fixed compatibility with
proguard-android-optimize.txt
settings. - Corrected type of error reported when "REMOTE" is set for a Google project number but it is missing from the OneSignal dashboard.
- Added SQLite downgrade handling to prevent errors for any future schema changes. Issue #222
3.5.3 Release
Added ranges for dependencies
Recommended build.gradle
dependencies
entry is now as follows.
compile 'com.onesignal:OneSignal:[3.5.3,4.0.0)'
Google Play services dependencies will automatically be included now.
3.5.1 Release
3.5.0 Release
Added Observers and Misc fixes
New Methods
addPermissionObserver
onPermissionChanged
will fire when user changes Android notification settings.- This fires when your app is open / resumed if the user blocks notifications under Settings > App.
addSubscriptionObserver
onSubscriptionChanged
will fire when notification subscription properties change.- Includes
userId
,pushToken
,userSubscriptionSettings
, andsubscribed
- Includes
getPermissionSubscriptionState
- Returns an object with permission and subscription instances with:
subscription.userId
,subscription.pushToken
,subscription.useSubscriptionSettings
,permission.enabled
- Returns an object with permission and subscription instances with:
- Added JSONObject constructors to OSNotification* classes. Request #198
Fixes
- Misc Fixes when group key is used (AKA stacked notifications)
- Fixes for closing an in-app alert with a group key set when no other other exist in the shade with the key
- Fixed issue where this could show a notification in the shade.
- Fixed an instability issue that could crash the app after an unrelated OneSignal event.
- Fixed issue where if first notification part of a group key was show as an in app alert future notifications wouldn't group if more are received with the same key when the app is out of focus.
- Fixes for closing an in-app alert with a group key set when no other other exist in the shade with the key
- Badges are now cleared when notifications are disabled.
- Fixed SyncService error if started with a
null
Intent.