3.4.11
Added
-
Custom push notification sounds! To play a custom sound for a push notification, add a sound file to your app's
res/rawfolder and specify that same filename when setting up a template in Iterable.Some important notes about custom sounds and notification channels:
- Android API level 26 introduced notification channels. Every notification must be assigned to a channel.
- Each custom sound you add to an Iterable template creates a new Android notification channel. The notification channel's name matches the filename of the sound (without its extension).
- To ensure sensible notification channel names for end users, give friendly names to your sound files. For example, a custom sound file with name
Paid.mp3creates a notification channel calledPaid. The end user can see this notification channel name in their device's notification channel settings. - Be sure to place the corresponding sound file in your app's
res/rawdirectory.
-
To help you access a user's
emailaddress,userId, andauthToken, the SDK now provides convenience methods:getEmail(),getUserId(), andgetAuthToken().
Changed
-
Updated the Security library and improved
EncryptedSharedPreferenceshandling.To work around a known Android issue that can cause crashes when creating
EncryptedSharedPreferences, we've upgradedandroidx.security.cryptofrom version1.0.0to1.1.0-alpha04. WhenEncryptedSharedPreferencescannot be created, the SDK now usesSharedPreferences(unencrypted).If your app requires encryption, you can prevent this fallback to
SharedPreferencesby setting theencryptionEnforcedconfiguration flag totrue. However, if you enable this flag andEncryptedSharedPreferencescannot be created, an exception will be thrown. -
Improved JWT token management. This change addresses an issue where
nullvalues could prevent the refresh of a JWT token.
Fixed
-
Fixed an issue which could prevent in-app messages from respecting the Position value selected when setting up the template (top / center / bottom / full).
-
Fixed crashes that sometimes happened during in-app message animations.