Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is AWS SNS adding apns-push-type & apns-priority to its iOS push notification headers?

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, 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?

like image 751
John Scalo Avatar asked Aug 20 '19 16:08

John Scalo


People also ask

Is SNS push based?

Amazon Simple Notification Service (SNS) sends notifications two ways, A2A and A2P. A2A provides high-throughput, push-based, many-to-many messaging between distributed systems, microservices, and event-driven serverless applications.

How do you push to the SNS topic?

Sign in to the Amazon SNS console . In the left navigation pane, choose Topics. On the Topics page, select a topic, and then choose Publish message. The console opens the Publish message to topic page.

What is the format of structured notification messages sent by Amazon SNS?

The notification message sent by Amazon SNS for deliveries over HTTP, HTTPS, Email-JSON and SQS transport protocols will consist of a simple JSON object, which will include the following information: MessageId: A Universally Unique Identifier, unique for each notification published.


2 Answers

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

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/

like image 110
Otavio Ferreira Avatar answered Oct 20 '22 02:10

Otavio Ferreira


Amazon responded to our support ticket:

Thank you for contacting AWS Support. I'm *** and I'll be assisting you today regarding this case.

I understand that Apple is going to enforce a new protocol in iOS 13. As per new protocol, all the HTTP notifications must have 'apns-push-type' and 'apns-priority' fields in their headers.

We are aware of this issue and the engineering team is working towards to resolve the issue. Unfortunately, there is no workarounds and the support team does not have any visibility into the engineering team's roadmap and ETA for features so I'm unable to provide a date when support for iOS 13 headers will be available. I strongly recommend you to keep an eye on AWS Release notes for an update regarding this issue[1].

I apologize for the inconvenience and I hope that the engineering team resolves the issue as early as possible.

like image 39
John Scalo Avatar answered Oct 20 '22 03:10

John Scalo