Skip to content

Commit 2bc0423

Browse files
authored
public repo edits per @dhei
1 parent 61160b3 commit 2bc0423

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +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-
//Random number the second Parameter
200-
var pendingIntent = PendingIntent.GetActivity(this, UNIQUE_INT_PER_CALL, intent, PendingIntentFlags.OneShot);
199+
//Unique request code to avoid PendingIntent collision.
200+
var requestCode = new Random().Next();
201201

202202
var notificationBuilder = new NotificationCompat.Builder(this)
203203
.SetSmallIcon(Resource.Drawable.ic_stat_ic_notification)

0 commit comments

Comments
 (0)