Im trying to create an application using AWS SDK with the following code.
$AmazonSNS->createPlatformApplication(array(
'Name'=>"GameplandevApns",
'Platform'=>'APNS',
'Attributes'=>array(
'PlatformPrincipal'=>'safdafafsafasasafdafa',
'PlatformCredential'=>'asfdafdsadfsafasfsasa'
)
));
I am getting the error:
Invalid parameter: PlatformPrincipal not valid.
What is wrong with my code?
For APNS, the PlatformPrincipal is used for the SSL certificate from Apple while the PlatformCredential is the private key. Here is the Getting Started Guide for APNS and the Create Platform Application API docs.