Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8240

camel-apns should allow custom expiration times so that users get fine grained expiration control for mobile push messages

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.14.1
    • 2.14.2, 2.15.0
    • camel-apns
    • 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.

      Attachments

        Activity

          People

            njiang Willem Jiang
            convoi Justin Heesemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: