Skip to content

Commit a7b1092

Browse files
authored
Merge pull request #380 from sidcpatel/patch-1
Android 12: Set flag PendingIntent.FLAG_IMMUTABLE
2 parents 4fb607a + 3992a34 commit a7b1092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableNotificationHelper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public IterableNotificationBuilder createNotification(Context context, Bundle ex
193193
}
194194

195195
PendingIntent notificationClickedIntent = PendingIntent.getBroadcast(context, notificationBuilder.requestCode,
196-
pushContentIntent, PendingIntent.FLAG_UPDATE_CURRENT);
196+
pushContentIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
197197

198198
notificationBuilder.setContentIntent(notificationClickedIntent);
199199
notificationBuilder.setIsGhostPush(isGhostPush(extras));

0 commit comments

Comments
 (0)