[英]To increase application badge number on receiving push notification using pushwoosh
I am using pushwoosh portal to send push notification and i want to increase the application badge number on receiving push notification. 我正在使用pushwoosh门户发送推送通知,并且我想在接收到推送通知时增加应用程序徽章的数量。 And i am using following method of Pushwoosh sdk to send badge number to server.
我正在使用以下Pushwoosh sdk方法将徽章编号发送到服务器。
- (void) pw_setApplicationIconBadgeNumber:(NSInteger) badgeNumber
But on Pushwoosh portal , there is only one option to set badge number. 但是在Pushwoosh门户上,只有一种设置徽章编号的选项。 if i assign an integer value as badge number then it shows on app icon on receiving push notification and if i do not assign any value then it removes badge from app icon.
如果我将整数值分配为徽章编号,则在收到推送通知时会在应用程序图标上显示;如果我未分配任何值,则它将徽章从应用程序图标中删除。
Question: My problem is that what is the roll of that badge value which i sent from code to pushwoosh server? 问题:我的问题是我从代码发送到pushwoosh服务器的那枚徽章值是多少? when and where will that value be used?
何时何地使用该值?
As I understand, you would like to send incremental badge values instead of integer values. 据我了解,您想发送增量徽章值,而不是整数值。 In Pushwoosh you should simply add the "+" before the value of the badge number.
在Pushwoosh中,您只需在徽章编号的值之前添加“ +”。 For instance if you send your notifications through API, you should simply add the "ios_badges":"+1" to your json request.
例如,如果您通过API发送通知,则只需将“ ios_badges”:“ + 1”添加到json请求中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.