推送通知徽章

推送通知徽章

问题描述:

我正在将几条消息从我的服务器推送到iPhone。当我在推动时,我将徽章值设置为1.由于服务器中有几个独立的任务,服务器可能会将消息推送到同一个电话,但徽章将是1 cos,因为这些是独立的任务我无法增加徽章和发送。所以我想知道这个徽章是否在iPhone方面增加,还是我们必须适当地推动徽章价值?

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?

谢谢

徽章价值将是您设定的任何值它,它不会自动增加设备。您的服务器逻辑需要跟踪正确的徽章计数并正确发送。

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.

Urban Airship 提供自动递增服务器徽章计数的解决方案,可能会也可能不会帮助您。

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

另见这个问题