notnoop / java-apns

Java Apple Push Notification Service Provider
notnoop.github.com/java-apns
BSD 3-Clause "New" or "Revised" License
1.8k stars 658 forks source link

Sending Base64 encode image not working #356

Closed pkasson closed 6 years ago

pkasson commented 6 years ago

An image is base 64 encoded on iOS device. When this payload is sent via APNS it fails to be sent to iOS devices.

SirWellington commented 6 years ago

Push Notification messages are limited to 4KB: see here.

If you are trying to send an image, encoded in Base 64, it is probably too big. Try sending a link or pointer to the image instead.

pkasson commented 6 years ago

Yup, you are right, I overlooked that - thanks !