MessageBuilder
class MessageBuilder
Methods
Set the receiver of the message
Set the moment this message should expire or null if APNS should not store the message at all.
Set the alert to display.
Set the localized alert to display.
Add custom (iOS 8+) actions to the alert you display Note: You must also call setAlert() or setAlertLocalized() to make a complete alert
Add localized custom (iOS 8+) actions to the alert you display Note: You must also call setAlert() or setAlertLocalized() to make a complete alert
Set the badge to display on the App icon
Clear the badge from the App icon
Set the sound that will be played when this message is received
Set newsstand content availability flag that will trigger the newsstand item to download new content
Set the category identifier for this message used by the app to display custom actions
Set custom payload to go with the message
Details
at line 27
MessageBuilder
setDeviceToken(string $deviceToken)
Set the receiver of the message
at line 40
MessageBuilder
setCertificate(Certificate $certificate)
Set the certificate to use when
at line 54
MessageBuilder
setExpiresAt(DateTime $expiresAt = null)
Set the moment this message should expire or null if APNS should not store the message at all.
The last message for a device is stored at APNS for delivery until this moment if the device is offline.
at line 70
MessageBuilder
setAlert(string|null $body, string|null $actionLocKey = null, string|null $launchImage = null)
Set the alert to display.
See also: http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW1
at line 105
MessageBuilder
setAlertLocalized(string $locKey, array $locArgs = array(), string|null $actionLocKey = null, string|null $launchImage = null)
Set the localized alert to display.
See also: http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW1
at line 129
MessageBuilder
addAlertAction(string $id, string $title)
Add custom (iOS 8+) actions to the alert you display Note: You must also call setAlert() or setAlertLocalized() to make a complete alert
at line 144
MessageBuilder
addAlertActionLocalized($id, $locKey, $locArgs = array())
Add localized custom (iOS 8+) actions to the alert you display Note: You must also call setAlert() or setAlertLocalized() to make a complete alert
at line 157
MessageBuilder
setBadge(int|null $badge)
Set the badge to display on the App icon
at line 169
MessageBuilder
clearBadge()
Clear the badge from the App icon
at line 182
MessageBuilder
setSound(string $sound = 'default')
Set the sound that will be played when this message is received
at line 195
MessageBuilder
setContentAvailable(boolean $contentAvailable)
Set newsstand content availability flag that will trigger the newsstand item to download new content
at line 208
MessageBuilder
setCategory(string $category)
Set the category identifier for this message used by the app to display custom actions
at line 221
MessageBuilder
setPayload(array|json|null $payload)
Set custom payload to go with the message
at line 235
Message
build()
Build the message