Skip to content

Commit 971edd1

Browse files
authored
Merge pull request #47129 from susairajs/susairajs-XamarinformsAzureDoc
Update app-service-mobile-xamarin-forms-get-started-push.md
2 parents 7e65cea + 42e2b9b commit 971edd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ With the back end configured with FCM, you can add components and codes to the c
198198
intent.AddFlags(ActivityFlags.ClearTop);
199199
//Unique request code to avoid PendingIntent collision.
200200
var requestCode = new Random().Next();
201-
201+
var pendingIntent = PendingIntent.GetActivity(this, requestCode, intent, PendingIntentFlags.OneShot);
202202
var notificationBuilder = new NotificationCompat.Builder(this)
203203
.SetSmallIcon(Resource.Drawable.ic_stat_ic_notification)
204204
.SetContentTitle("New Todo Item")

0 commit comments

Comments
 (0)