Skip to content

Commit c869e44

Browse files
authored
Merge pull request #46878 from susairajs/patch-1
Update app-service-mobile-xamarin-forms-get-started-push.md
2 parents e8f3fde + 2bc0423 commit c869e44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/app-service-mobile/app-service-mobile-xamarin-forms-get-started-push.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ With the back end configured with FCM, you can add components and codes to the c
196196
{
197197
var intent = new Intent(this, typeof(MainActivity));
198198
intent.AddFlags(ActivityFlags.ClearTop);
199-
var pendingIntent = PendingIntent.GetActivity(this, 0, intent, PendingIntentFlags.OneShot);
199+
//Unique request code to avoid PendingIntent collision.
200+
var requestCode = new Random().Next();
200201

201202
var notificationBuilder = new NotificationCompat.Builder(this)
202203
.SetSmallIcon(Resource.Drawable.ic_stat_ic_notification)

0 commit comments

Comments
 (0)