Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.14.1
-
None
-
Novice
Description
Currently it is not possible to send apns messages with a user defined expiration date.
This affects both STRING and PAYLOAD message types.
The org.apache.camel.component.apns.ApnsProducer calls the ApnsService.push(Collection<String> deviceTokens, String payload) throws NetworkIOException;
method which uses a EnhancedApnsNotification.MAXIMUM_EXPIRY (somewhen in 2038).
A possible solution would allow the usage of a new ApnsConstants.HEADER_EXPIRY message header where users could store the wanted expiration time.