AWS SNS是否添加了apns-push-type&是否优先于其iOS推送通知标头? [英] Is AWS SNS adding apns-push-type & apns-priority to its iOS push notification headers?

查看:302
本文介绍了AWS SNS是否添加了apns-push-type&是否优先于其iOS推送通知标头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 Apple的APNs文档,其中包含http的iOS 13客户端api 必须发送apns-push-typeapns-priority的标头字段,否则请求将失败.果然,我们的iOS 13 beta使用者并没有收到我们通过AWS/SNS发送的静默推送通知.

According to Apple's APNs docs, as of iOS 13 clients of the http api must send header fields for apns-push-type and apns-priority or the requests will fail. Sure enough, our users who've udpated to the iOS 13 beta aren't getting silent push notifications that we send through AWS/SNS.

AFAICT,无法将这些标头字段注入"到SNS实际发送的请求中.但是似乎亚马逊应该理所当然地这样做,因为没有它,数十亿条通知将很快开始失败.

AFAICT, there's no way to "inject" these header fields into the request that SNS actually sends. But it seems like Amazon should just be doing this as a matter of course since without it, billions of notifications will soon start to fail.

有人知道他们是否有计划尽快这样做?也许他们已经在做这件事,而我却缺少了什么?

Anyone know if they have plans to do this soon? Or maybe they're doing it already and I'm missing something?

推荐答案

好消息! AWS宣布SNS现在支持其他移动推送通知标头作为消息属性.

Good news! AWS announced that SNS now supports additional mobile push notification headers as message attributes.

此更改对iOS 13很有帮助,其中包括apns-push-type,apns-priority和apns-topic标头.

This change is good for iOS 13, and includes the apns-push-type, apns-priority, and apns-topic headers.

https://aws.amazon.com/about-aws/whats-new/2019/10/amazon-sns-now-supports-additional-mobile-push-notification- headers-as-message-attributes/

这篇关于AWS SNS是否添加了apns-push-type&是否优先于其iOS推送通知标头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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