iPhone: Increment badge counter automatically [duplicate]

浪尽此生 提交于 2019-12-04 12:52:48

It's not really a problem. The client just needs to let the server know what messages it has seen. Everyone else is doing it, so just learn how to do it and do it.

EDIT: You can set the badge counter using:

[UIApplication sharedApplication].applicationIconBadgeNumber = badgeCount;

Every time you do, you should send badgeCount to the server, so that the server knows the current count.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!