I am working on a chat application on Android using c2dm (gcm). Each message received causes a notification if my application cannot show it directly. The problem is that the user is disconnected from the grid, in which case c2dm messages are added and delivered immediately when he is connected to the network again. The cacophony of notification sounds is the result of adding all notifications in 1 second. How to prevent this? The desired behavior is that the notification sound is played once, while the content of tick text and notifications is updated with the last message received
source
share