简体   繁体   English

在使用pushwoosh接收推送通知时增加应用程序徽章编号

[英]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.

相关问题 如何通过使用Swift自己的PHP APNS服务器从推送通知中增加徽章号? - How to increase badge number from push notification using own php APNS server by swift? 发送解析推送通知时如何增加徽章数量 - How to increase badge number when sending a parse push notification 如何在iOS应用程序上使用PushWoosh重置推送通知徽章计数器 - How to reset push notification badge counter with PushWoosh on an iOS app 本地推送通知徽章编号 - local push notification badge number Pushwoosh设备未收到通知 - Pushwoosh Device not receiving notification Pushwoosh推送通知 - Pushwoosh Push Notification 在 iOS13 中接收推送通知时如何自动增加通知徽章编号 - How to auto increment notifications badge number when receiving a push notification in iOS13 在 ios 中接收通知时禁用应用程序徽章图标 - Disable application badge icon on receiving notification in ios 如何在通过 Firebase Cloud Messaging 收到推送通知后显示徽章编号和声音? - how to show badge number and sound after receiving push notification via Firebase Cloud Messaging? Firebase 推送通知在收到通知时增加徽章计数 - Firebase Push Notification Increase Badge Count When Receive Notification
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM