Error sending notifications to iOs devices

1

I am implementing sending notifications from a .jar, notifications in

asked by Joacer 12.04.2017 в 10:15
source

1 answer

1

I have managed to eliminate the error:

  

Delivery error:   javapns.notification.exceptions.PayloadMaxSizeExceededException:
  Total payload size exceeds allowed limit (payload is 259 bytes, limit   is 256)

For this I had to modify the line:

PushNotificationPayload payload = PushNotificationPayload.complex(); 

for this one:

PushNotificationPayload payload = PushNotificationBigPayload.complex();
    
answered by 18.04.2017 / 12:32
source