I do a poll from the server every x minutes to get events that the user is invited to. Let them say that the user has a new invitation and he receives a notification at 10:00. The user never clicks on the notification, and I want the user to not receive another notification after a few minutes with the same information. Basically, I want unique notifications to be displayed only once and to warn the user once.
You would think that this line of code would work the way I want, but it is not.
notification.flags |= Notification.FLAG_ONLY_ALERT_ONCE;
Does anyone have any ideas?
source share