Documentation

SendPushNotificationFromTemplate

Sends an iOS/Android Push Notification template to a specific user, if that user's device has been configured for Push Notifications in PlayFab. If a user has linked both Android and iOS devices, both will be notified.

Request Details

SendPushNotificationFromTemplateRequest
Request Properties
PushNotificationTemplateId (required) String

Id of the push notification template.

Recipient (required) String

PlayFabId of the push notification recipient.

POST https://{{TitleID}}.playfabapi.com/Server/SendPushNotificationFromTemplate
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "Recipient": "F8763A987E",
  "PushNotificationTemplateId": "6bc7dbf0-075a-46e9-8e84-35737a22c6a4"
}
        

Response Details

SendPushNotificationResult
Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8


Authentication

SecretKey

Possible Error Codes

Name Code
PushNotEnabledForAccount 1094
PushNotificationTemplateNotFound 1417
PushServiceError 1095