Class FcmSendMessageRequest


  • public final class FcmSendMessageRequest
    extends Object
    An FcmSendMessageRequest encapsulates the details of an FCM send message request.
    • Method Detail

      • getCollapseKey

        @Nullable
        public String getCollapseKey()
        Returns the group of messages that can be collapsed.
        Returns:
        the group of messages that can be collapsed.
      • getContentAvailable

        @Nullable
        public Boolean getContentAvailable()
        Returns whether or not to indicate to the client that content is available in order to wake the device. Note: for messages to iOS devices only.
        Returns:
        whether or not to indicate to the client that content is available in order to wake the device.
      • getMutableContent

        @Nullable
        public Boolean getMutableContent()
        Returns whether or not the content in the message can be mutated. Note: for messages to iOS devices only.
        Returns:
        whether or not the content in the message can be mutated.
      • getTimeToLive

        @Nullable
        public Long getTimeToLive()
        Returns how long (in seconds) the message should be kept in FCM storage if the device is offline.
        Returns:
        how long (in seconds) the message should be kept in FCM storage if the device is offline.
      • getData

        @Nullable
        public Document getData()
        Returns the custom data to send in the payload.
        Returns:
        the custom data to send in the payload.
      • getNotification

        @Nullable
        public FcmSendMessageNotification getNotification()
        Returns the predefined, user-visible key-value pairs of the notification payload.
        Returns:
        the predefined, user-visible key-value pairs of the notification payload.