推送通知徽章 [英] Push notification badge

查看:30
本文介绍了推送通知徽章的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将几条消息从我的服务器推送到 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.

另见这个问题.

这篇关于推送通知徽章的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆