diff --git a/src/Plugin.LocalNotifications.Android/LocalNotificationsImplementation.cs b/src/Plugin.LocalNotifications.Android/LocalNotificationsImplementation.cs index fd7ba26..8877d88 100644 --- a/src/Plugin.LocalNotifications.Android/LocalNotificationsImplementation.cs +++ b/src/Plugin.LocalNotifications.Android/LocalNotificationsImplementation.cs @@ -18,6 +18,11 @@ public class LocalNotificationsImplementation : ILocalNotifications /// public static int NotificationIconId { get; set; } + /// + /// The key used to Intent's Extra. + /// + public const string LocalNotificationIntentKey = "NotificationId"; + /// /// Show a local notification /// @@ -42,6 +47,7 @@ public void Show(string title, string body, int id = 0) var resultIntent = GetLauncherActivity(); resultIntent.SetFlags(ActivityFlags.NewTask | ActivityFlags.ClearTask); + resultIntent.PutExtra(LocalNotificationIntentKey, id); var stackBuilder = Android.Support.V4.App.TaskStackBuilder.Create(Application.Context); stackBuilder.AddNextIntent(resultIntent); var resultPendingIntent =