Releases: sailthru/sailthru-mobile-android-sdk
Sailthru Mobile Android SDK 17.0.4
Changes
Updates the internal Android lifecycle handling
Sailthru Mobile Android SDK 17.0.3
Bug Fixes
- Fixes the location of obfuscated classes - they are now located in an internal SDK package to prevent collisions with other obfuscated dependencies.
Sailthru Mobile Android SDK 17.0.2
Changes
- Adjusts the universal link verification process to make it less restrictive.
Sailthru Mobile Android SDK 17.0.1
Bug Fixes
- Fixes an issue with the new result enum
NotificationPermissionRequestResult
being obfuscated
Sailthru Mobile Android SDK 17.0.0
Features
Android 13 Support
This release adds updates to support the imminent release of Android 13. This version adds a new notification permission dialog that will need to be shown to and accepted by the app user before push notifications will be displayed (on new installs only, upgrading to Android 13 will not cause the permission dialog to be shown).
In order to support this the SDK has added a new requestNotificationPermission
method to help streamline requesting the new permission. Mode details are provided in our documentation.
The SDK targetSdk version has also been updated to 33.
Storage Update
Similar to the recent iOS changes, we have updated how the SDK persists data internally. We have moved away from using SharedPreferences and now store data using Room. Note that while the SDK has been designed to automatically migrate its data into the new store you should still conduct some extra tests to make sure you don't experience any issues with the new storage format.
Bug Fixes
- Fixes a bug when handling a Device ID present on the device but not on the platform.
- Fixes a bug when loading images for notifications and in-app notifications.
Sailthru Mobile Android SDK 16.0.0
Features
Coroutines support is here! This release adds a collection of extension methods that allow the asynchronous functionality in the SDK to be called in a suspendible way in coroutines. There are two variations available for each piece of functionality:
- methods that return a
Result
- methods that return the desired outcome directly or throw an exception on failure
We have also added three SharedFlow
instances as an alternative to providing listeners for SDK events:
- notificationReceivedFlow - for handling events when notifications arrive on the device
- notificationTappedFlow - for handling events when notifications are tapped by the user
- notificationActionTappedFlow - for handling events when notification actions are tapped by the user
The internal workings of the SDK have also been updated to rely more heavily on coroutines in order to support these changes as well as to help tighten up some functionality under the hood.
All exposed interfaces with only a single method have also been changed to functional interfaces so they can be implemented as lambdas in Kotlin.
See our docs for more details on implementation.
Sailthru Mobile Android SDK 15.0.0
This release adds support for Android 12 and targetSdkVersion 31.
Android 12 Changes
- From Android 12+, when a PendingIntent targeting an Activity is required in a notification, instead of using a BroadcastReceiver to handle the response it will instead be routed through the SDK's new
NotificationActivity
class. This will then send the original PendingIntent. https://developer.android.com/about/versions/12/behavior-changes-12#notification-trampolines - From Android 12+ when creating a PendingIntent the flags will be checked to ensure a mutability flag has been set, defaulting to adding
PendingIntent.FLAG_IMMUTABLE
if none is found. Note that if you provide a PendingIntent to the SDK using aContentIntentBuilder
implementation, you will need to ensure a mutability flag is present. https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability
Features
- The SDK targetSdkVersion has been updated to 31
- Firebase Cloud Messaging library updated to v22.0.0. Note: This version adds a breaking change relating to Java 8 support that may require changes to your project settings: https://firebase.google.com/support/release-notes/android#2021-05-11
Sailthru Mobile Android SDK 14.1.0
Features
This release adds support for purchase adjustments to be added when making purchases using the new PurchaseAdjustment
class. See our docs for more details.
Sailthru Mobile Android SDK 14.0.0
Features
- Updates the minSdkVersion to 21, as this is the minimum supported by the SDK's OkHttp dependency.
- Overhauls the SDK's internal networking. This should have minimal external impact, however when errors are returned from API calls they will now be wrapped in a new
HttpError
class.
Bug Fixes
- Fixes an intermittent bug which would cause image loading issues in notifications when the app was backgrounded for an extended period.
Sailthru Mobile Android SDK 13.0.3
Bug Fixes
- This release fixes a significant push handling bug that would cause an exception to be thrown when handling push notifications containing images after the app had been cleared from memory.