Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS SNS - Platform application is disabled

We use Amazon SNS to send push notifications to our users. We recently renewed the certificates but for some reason we nog get the following error:

<?xml version="1.0" encoding="UTF-8"?>
<ErrorResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/">
   <Error>
      <Type>Sender</Type>
      <Code>PlatformApplicationDisabled</Code>
      <Message>Platform application is disabled</Message>
   </Error>
</ErrorResponse>

We haven't changed anything to the code or to the certificates. When I verify the certificates using openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert myapnsappcert.pem -key myapnsappprivatekey.pem everything also works fine. The only problem is that the notifications for iOS won't be sent due to the error. Android is working fine.

like image 455
Bart Bergmans Avatar asked Oct 17 '22 04:10

Bart Bergmans


1 Answers

The error can caused because your p.12 is expired, you can create a new one or update the current in AWS SNS.

like image 175
Avi Siboni Avatar answered Oct 21 '22 01:10

Avi Siboni