search

Home  >  Q&A  >  body text

ios - 远程推送怎么通知服务器读了多少条消息?

做远程推送功能,服务器返回的badge值是累加的,客户端要怎么通知服务器读了多少条消息?是要自己的服务器提供接口吗?
-------更新
已解决了。jpush 里有个setbadge的方法。。。。

PHPzPHPz2888 days ago295

reply all(1)I'll reply

  • 怪我咯

    怪我咯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.

    reply
    0
  • Cancelreply