@@ -358,7 +358,7 @@ public virtual void OnReceived(IDictionary<string, object> parameters)
358358 }
359359 var requestCode = new Java . Util . Random ( ) . NextInt ( ) ;
360360
361- var pendingIntent = PendingIntent . GetActivity ( context , requestCode , resultIntent , PendingIntentFlags . UpdateCurrent ) ;
361+ var pendingIntent = PendingIntent . GetActivity ( context , requestCode , resultIntent , PendingIntentFlags . UpdateCurrent | PendingIntentFlags . Immutable ) ;
362362
363363 if ( parameters . TryGetValue ( ChannelIdKey , out var channelId ) && channelId != null )
364364 {
@@ -387,7 +387,7 @@ public virtual void OnReceived(IDictionary<string, object> parameters)
387387
388388 var deleteIntent = new Intent ( context , typeof ( PushNotificationDeletedReceiver ) ) ;
389389 deleteIntent . PutExtras ( extras ) ;
390- var pendingDeleteIntent = PendingIntent . GetBroadcast ( context , requestCode , deleteIntent , PendingIntentFlags . CancelCurrent ) ;
390+ var pendingDeleteIntent = PendingIntent . GetBroadcast ( context , requestCode , deleteIntent , PendingIntentFlags . CancelCurrent | PendingIntentFlags . Immutable ) ;
391391 notificationBuilder . SetDeleteIntent ( pendingDeleteIntent ) ;
392392
393393 if ( Build . VERSION . SdkInt < Android . OS . BuildVersionCodes . O )
@@ -503,15 +503,15 @@ public virtual void OnReceived(IDictionary<string, object> parameters)
503503
504504 extras . PutString ( ActionIdentifierKey , action . Id ) ;
505505 actionIntent . PutExtras ( extras ) ;
506- pendingActionIntent = PendingIntent . GetActivity ( context , aRequestCode , actionIntent , PendingIntentFlags . UpdateCurrent ) ;
506+ pendingActionIntent = PendingIntent . GetActivity ( context , aRequestCode , actionIntent , PendingIntentFlags . UpdateCurrent | PendingIntentFlags . Immutable ) ;
507507
508508 }
509509 else
510510 {
511511 actionIntent = new Intent ( context , typeof ( PushNotificationActionReceiver ) ) ;
512512 extras . PutString ( ActionIdentifierKey , action . Id ) ;
513513 actionIntent . PutExtras ( extras ) ;
514- pendingActionIntent = PendingIntent . GetBroadcast ( context , aRequestCode , actionIntent , PendingIntentFlags . UpdateCurrent ) ;
514+ pendingActionIntent = PendingIntent . GetBroadcast ( context , aRequestCode , actionIntent , PendingIntentFlags . UpdateCurrent | PendingIntentFlags . Immutable ) ;
515515
516516 }
517517
0 commit comments