开发者

Push notification badge

I am pushing several messages form 开发者_如何学运维my server to the iPhone. When I am pushing I'm setting the badge value as 1. As there are several independent tasks in the server there may be situational where server pushes messages to same phone but the badge will be 1 cos as those are independent tasks I cannot increment the badge and send. So I want to know whether this badge is incremented in the iPhone side or do we have to push the badge value appropriately?

Thank you


The badge value will be whatever you set it to, it won't increment on the device automatically. Your server logic needs to keep track of the proper badge count and send it appropriately.

Services like Urban Airship offer solutions for auto-incrementing badge counts on their server, which may or may not assist you.

Also see this SO question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜