Skip to content

Commit 6861f60

Browse files
committed
set pendingIntentFlags to PendingIntentFlags.UpdateCurrent | PendingIntentFlags.Immutable
1 parent b688fbe commit 6861f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/Notifo.SDK/NotifoMobilePush/NotifoMobilePushImplementation.android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private void AddAction(NotificationCompat.Builder notificationBuilder, string ti
161161
{
162162
var notificationIntent = new Intent(Intent.ActionView);
163163
notificationIntent.SetData(Android.Net.Uri.Parse(url));
164-
var buttonIntent = PendingIntent.GetActivity(Application.Context, 0, notificationIntent, 0);
164+
var buttonIntent = PendingIntent.GetActivity(Application.Context, 0, notificationIntent, PendingIntentFlags.UpdateCurrent | PendingIntentFlags.Immutable);
165165

166166
notificationBuilder.AddAction(0, title, buttonIntent);
167167
}

0 commit comments

Comments
 (0)