I am polling from a server every x minutes to get events a user is invited to. Let's say the user has a new invite and gets a notification at 10:00 am. The user never clicks on the notification, and I want to prevent the user from receiving another notification x minutes later with the same information. Basically I want to allow unique notifications to only display once and alert the user once.
You would think this line of code would work do what I want desired, but it does not.
notification.flags |= Notification.FLAG_ONLY_ALERT_ONCE;
Anyone have any ideas?