Releases: OneSignal/OneSignal-Android-SDK
Releases · OneSignal/OneSignal-Android-SDK
3.0.3 Release
3.0.2 Release
Fixed Google Play services app out of date issue
3.0.1 Release
- Fixed rare crash if your app was stopped while generating a notification. Issue #84
- Fix extra network calls if using sendTags and their was a delay registering for push.
3.0.0 Release
- New
NotificationOpenedHandler
signature with a instance ofOSNotificationOpenResult
. - New
NotificationReceivedHandler
event settable withsetNotificationReceivedHandler
onOneSignal.Builder
. - New
OSNotificationReceivedResult
passed toNotificationExtenderService
- More descriptive
OSNotificationPayload
property names withrawPayload
.
- More descriptive
- Session count improvements.
syncHashedEmail
- New optional method that sends OneSignal the user's email as an anonymized hash so that we can better target and personalize notifications sent to that user across their devices.- Badge support for newer Sony launchers and added Huawei launcher support.
- Fix for white circle or square small notification icon Android 5.0+ devices. (API level 21).
- If you do not create your own drawable named
ic_stat_onesignal_default
, a notification bell icon will be provided instead of using the app icon.
- If you do not create your own drawable named
- In app alert changes
- In app alerts are now shown by default instead of just firing an event.
- New
OSInFocusDisplayOption
enum withInAppAlert
,Notification
, andNone
options settable withinFocusDisplaying
fromOneSignal.Builder
.- This replaces
enableInAppAlertNotification
andenableNotificationsWhenActive
.
- This replaces
- Button text changed from "Close" to "Ok".
- Configurable by setting a
onesignal_in_app_alert_ok_button_text
key in yourstring.xml
.
- Configurable by setting a
postNotification
now allows override ofapp_id
.lockScreenVisibility
default read value fix.- Fixed rare issue where an out of date Google Play services app would unsubscribe the device when it may still be valid.
- Added more subscription statuses for Google Play services initialization errors.
2.6.2 Release
ConcurrentModificationException fixes
2.6.1 Release
- Notifications receiver more than 1 week ago will no longer be restored.
- New Google Play services out date prompt features.
- Added disableGmsMissingPrompt method to the OneSignal.Builder class.
- Added new
strings.xml
keys to control the language of the prompt- onesignal_gms_missing_alert_text
- onesignal_gms_missing_alert_button_update
- onesignal_gms_missing_alert_button_skip
- onesignal_gms_missing_alert_button_close
- Fixed Indonesian language detection.
2.6.0 Release
Background image support and misc fixes
- Can now set background images on notifications.
- Add a drawable named
onesignal_bgimage_default_image
to use for all notifications. - Set
onesignal_bgimage_notif_title_color
andonesignal_bgimage_notif_body_color
in yourvalues/colors.xml
to set text colors to match your image.
- Add a drawable named
- Added additional checks for Google Play services.
2.5.2 Release
Checks GooglePlayServicesUtil and fixed gms prompt
- Fixed prompt for out of date Google Play services.
- Added check for GooglePlayServicesUtil to better detect missing gms components.
2.5.1 Release
Fixes exception on cold start when restoring notifications
- Introduced in 2.5.0.
2.5.0 Release
Notifications now restore when removed by the system
- Notifications are now restored to the notification shade when they were cleared by Android itself.
- Includes package upgrades, device reboots, and each time the app is cold started (to restore from the 'force stopped' state).
- Added
clearOneSignalNotifications
andcancelNotification
methods.- You must use them if you need to programmatically dismiss notifications otherwise they will be restored.
- Added
androidNotificationId property
toNotificationExtenderService.OverrideSettings
. - Since notifications are restored this fixes badge count out of sync issues.