I'm getting an INVALID_TOKEN error when calling scheduleNormalizedPushNotificationMinutes() from cloud code. The "Send Notification" button in the BrainCloud dashboard also fails to work.
- I've correctly uploaded/configured my .p12 file etc.
- I'm correctly retrieving the device token from the client, and it shows up on the BrainCloud dashboard.
- My Apple certs/profiles etc. are in order.
var alertContentJson = {
"body": "content of message",
"title": "message title"
};
var customDataJson = {
"field1": "value1",
"field2": "value2"
};
var minutesFromNow = 1;
var otherPlayerId = "someId";
var pushNotificationProxy = bridge.getPushNotificationServiceProxy();
var postResult = pushNotificationProxy.scheduleNormalizedPushNotificationMinutes(otherPlayerId, alertContentJson, customDataJson, minutesFromNow);