跳轉到主要內容
POST
Send Push Notification

授權

X-SecretKey
string
header
必填

This API requires a title secret key, available to title admins, from PlayFab Game Manager.

主體

application/json
Recipient
string
必填

PlayFabId of the recipient of the push notification.

AdvancedPlatformDelivery
object[]

Allows you to provide precisely formatted json to target devices. This is an advanced feature, allowing you to deliver to custom plugin logic, fields, or functionality not natively supported by PlayFab.

CustomTags
object

The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

Message
string

Text of message to send.

Package
object

Defines all possible push attributes like message, title, icon, etc. Some parameters are device specific - please see the PushNotificationPackage documentation for details.

Subject
string

Subject of message to send (may not be displayed in all platforms)

TargetPlatforms
enum<string>[]

Target Platforms that should receive the Message or Package. If omitted, we will send to all available platforms.

可用選項:
ApplePushNotificationService,
GoogleCloudMessaging

回應

code
integer

The Http status code. If X-ReportErrorAsSuccess header is set to true, this will report the actual http error code.

status
string

The Http status code as a string.

data
object
最後修改於 2026年10月6日