Mcfedr\AwsPushBundle\Message\Message

Synopsis

class Message implements JsonSerializable {
  • // constants
  • const GCM_NO_COLLAPSE = 'do_not_collapse';
  • const APNS_MAX_LENGTH = 2048;
  • const GCM_MAX_LENGTH = 4096;
}

Hierarchy

Implements

Constants

Name Value
GCM_NO_COLLAPSE 'do_not_collapse'
APNS_MAX_LENGTH 2048
GCM_MAX_LENGTH 4096

Members

private

  • $admData — array
    If set, will be sent to ADM, otherwise ['message' => $text] will be sent as part of the data
  • $apnsData — array
    If set, will be sent to APNS
  • $badge — int
    APNS only
  • $collapseKey — string
    GCM and ADM only
  • $contentAvailableMcfedr\AwsPushBundle\Message\bool
    APNS only Provide this key with a value of 1 to indicate that new content is available. Including this key and value means that when your app is launched in the background or resumed
  • $custom — array
    This is the data to send to all services, it will be deep merged with the other data
  • $delayWhileIdle — boolean
    GCM only
  • $gcmData — array
    If set, will be sent to GCM, otherwise ['message' => $text] will be sent as part of the data
  • $sound — string
    APNS only
  • $text — string
    The text is automatically trimmed when sending to APNS The text will only be sent to GCM and ADM if no platform specific data is set
  • $ttl — int
    GCM only

Methods

History