Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public class LocalNotificationsImplementation : ILocalNotifications
/// </summary>
public static int NotificationIconId { get; set; }

/// <summary>
/// The key used to Intent's Extra.
/// </summary>
public const string LocalNotificationIntentKey = "NotificationId";

/// <summary>
/// Show a local notification
/// </summary>
Expand All @@ -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 =
Expand Down