Basic code to save the notification ID for each contact.  Doesn't merge multiple messages yet.