Setup Push Notification
Sets the Amazon Resource Name (ARN) for iOS and Android push notifications. Documentation on the exact restrictions can be found at: http://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html. Currently, Amazon device Messaging is not supported.
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| PushServiceError | 1095 |
| ValueAlreadyExists | 1031 |
Authorizations
This API requires a title secret key, available to title admins, from PlayFab Game Manager.
Body
When using the Apple Push Notification service (APNS) or the development version (APNS_SANDBOX), the APNS Private Key should be used as the Credential in this call. With Google Cloud Messaging (GCM), the Android API Key should be used. The current ARN (if one exists) can be overwritten by setting the OverwriteOldARN boolean to true.
When using the Apple Push Notification service (APNS) or the development version (APNS_SANDBOX), the APNS Private Key should be used as the Credential in this call. With Google Cloud Messaging (GCM), the Android API Key should be used. The current ARN (if one exists) can be overwritten by setting the OverwriteOldARN boolean to true.
Credential is the Private Key for APNS/APNS_SANDBOX, and the API Key for GCM
replace any existing ARN with the newly generated one. If this is set to false, an error will be returned if notifications have already setup for this platform.
supported notification platforms are Apple Push Notification Service (APNS and APNS_SANDBOX) for iOS and Google Cloud Messaging (GCM) for Android
GCM, APNS, APNS_SANDBOX for APNS, this is the PlatformPrincipal (SSL Certificate)
This field is deprecated and any usage of this will cause the API to fail.
