SDK updates for Android 12
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