做远程推送功能,服务器返回的badge值是累加的,客户端要怎么通知服务器读了多少条消息?是要自己的服务器提供接口吗?
-------更新
已解决了。jpush 里有个setbadge的方法。。。。
怪我咯2017-04-17 17:41:59
You can do this. Every time a message is read from the server, the server clears the badge value. You can increase or decrease the badge locally. When there is a new message on the server, the new badge is the local badge and server push. The cumulative result of past badges.