Samir Ali
Samir Ali

Reputation: 381

Getting “Platform application is disabled” from Amazon SNS

I want to send notifications to ios device using amazon sns service

but the code return Platform application is disabled how can I fix it

Upvotes: 12

Views: 8561

Answers (3)

Micah Armantrout
Micah Armantrout

Reputation: 6981

I also had this happen when I tried to send a notification to a device I did not have access to send to just FYI so it doesn't have to be just the cert that is wrong

Upvotes: 0

Akshay Dhawle
Akshay Dhawle

Reputation: 157

This error is caused when the p12 file you have uploaded to AWS is expired.

So go to AWS, create new one and follow the instuctions from the url below.

https://medium.com/@rajanmaharjan/create-push-notification-platform-for-aws-sns-ae6c845735b4

Upvotes: 5

Samir Ali
Samir Ali

Reputation: 381

I check the expired date of p12 files using getPlatformApplicationAttributes method in the SnsClient

then I update the file of p12 now it work fine .

Upvotes: 15

Related Questions