question

Ritik Agarwal avatar image
Ritik Agarwal asked

How to send push notification using cloud script?

I have implemented the push notification where I can send the notification to a specific player by going in his playfab id.

but I want to use the cloud script to push notification so that I can schedule a notification.

Can anyone tell me the way to do that.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

You can use these two server APIs to send notifications in CloudScript:

Server/SendPushNotification

Server/SendPushNotificationFromTemplate

And access them in CloudScript by doing this:

server.SendPushNotification({<request_info>}) //or

server.SendPushNotificationFromTemplate({<request_info>})

For more details on accessing server APIs in CloudScript, please check out this doc:

https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript/writing-custom-cloudscript#intermediate-calling-the-server-apis

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.