Use NotificationServices to tell which Local Notification Launched App

I was wondering if there was a way to check NotificationServices to see which local notification the user tapped to launch the app?

Any luck with this? I’m trying to do the same thing… I’ll let you know if I figure it out

I made some progress here, hope this helps:

When I set the local notification, I’m adding some some unique data to it via userInfo:

var notif:LocalNotification = new LocalNotification();
notif.fireDate = DateTime.Now.AddSeconds(10);
notif.alertBody = "Alert Text";
var notificationDict:IDictionary = new Dictionary.<String, String>();
++tick;
notificationDict["key"] = tick.ToString();
notif.userInfo = notificationDict;
NotificationServices.ScheduleLocalNotification(notif);

Then when launching from a local notification I’m checking the last notification’s userInfo:

var notif:LocalNotification  = NotificationServices.localNotifications[NotificationServices.localNotificationCount-1];
print(notif.userInfo["key"]);

Checking the unique key in userInfo lets you know which notification was pressed.