It's not a problem. The client simply needs to tell the server what messages it saw. Everyone else does it, so just learn to do it and do it.
EDIT: You can set the icon counter using:
[UIApplication sharedApplication].applicationIconBadgeNumber = badgeCount;
Each time you do this, you must send badgeCountto the server so that the server knows the current account.
source
share