Hi, I want to use push notifications. iOS certificate has been uploaded. Then I wrote and executed the code in cloudScript.
handlers.sendPush = function (args, context) { var request = { "Recipient": currentPlayerId, "Package": { "Message":"hi", "Title":"title", } }; server.SendPushNotification(request); }When executed, I get an error. Are there missing parameters?
{ "FunctionResult": null, "Logs": [ { "Level": "Error", "Message": "PlayFab API request error", "Data": [ [ [] ], [ [ [ [] ], [ [ [ [] ], [ [] ], [ [] ] ] ] ] ], [ [] ], [ [ [ [] ], [ [] ], [ [] ], [ [] ], [ [] ], [ [] ], [ [] ] ] ] ] } ], "ExecutionTimeSeconds": 0.0413044, "MemoryConsumedBytes": 40656, "APIRequestsIssued": 1, "HttpRequestsIssued": 0, "Error": { "Error": "CloudScriptAPIRequestError", "Message": "The script called a PlayFab API, which returned an error. See the Error logs for details.", "StackTrace": "Error\n at Object.server_request (Script:180:24)\n at Object.server.SendPushNotification (Script:595:77)\n at handlers.sendPush (9BAFE-main.js:76:12)\n at Object.invokeFunction (Script:116:33)" } }