徽章的iOS推送通知有效负载

时间:2020-07-27 05:45:03

标签: ios push-notification azure-notificationhub

iOS推送通知标记

所以我有这个应用程序(网络视图)。它具有一个消息传递应用程序,并且严重依赖于推送通知。此应用程序还具有计算当前通知的徽章。我想在推送即将到来时在后台进行徽章更新。有时徽章未更新。

这是我们为用户发送的示例标头和有效载荷。

  var apnsHeaders = new Dictionary<string, string>
                        {
                            { "apns-push-type", "backgroud" },
                            { "apns-priority", "5" }
                        };

  var appleNotification = new AppleNotification("{\"aps\":{ \"content-available\": 1, \"badge\":\"" + totalCount + "\" }}", apnsHeaders);

我还读到后台推送通知受到限制。 enter image description here

任何人都可以建议或

0 个答案:

没有答案