I have some cloudscript, which is meant to send a push notification to a specified user. It is throwing an error:
"errorDetails": { "Recipient": [ "The Recipient field is required." ], "SendPushNotificationRequest": [ "One of the following properties must be defined: Message, Package, AdvancedPlatformDelivery" ] }
However, the recipient field is set in the request. Here is my cloudscript code its using:
var pushRequest = { Recipient: "Player ID replaced here", Message: "Message Body", Subject: "Message Title", } var pushResponse = server.SendPushNotification(request);