Hello!
I have configured Android push notifications, and i was trying to set up scheduled notifications from cloud script, without success.
I have been trying this way:
var message = {}; message["Title"] = "test message"; message["Message"] = "This is a test message"; message["ScheduleDate"] = args.date; message["ScheduleType"] = 1; log.info("Send message:", JSON.stringify(message)); // try to send push notification try { server.SendPushNotification({ Recipient : currentPlayerId, Package: message }); } catch (ex) { // Target player has not registered for Push Notifications }
I have read some posts about this, but they are old, and i didn't found a solution for this.
Thanks in advance!