Package com.eatthepath.pushy.apns.util
Class SimpleApnsPayloadBuilder
java.lang.Object
com.eatthepath.pushy.apns.util.ApnsPayloadBuilder
com.eatthepath.pushy.apns.util.SimpleApnsPayloadBuilder
A simple APNs payload builder that serializes payloads using a
JsonSerializer
. Please see the documentation
for JsonSerializer
for details about how this payload builder serializes custom properties.- Since:
- 0.14.0
- Author:
- Jon Chambers
-
Field Summary
Fields inherited from class com.eatthepath.pushy.apns.util.ApnsPayloadBuilder
DEFAULT_SOUND_FILENAME, EMPTY_STRING_ARRAY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a JSON representation of the push notification payload under construction.buildMdmPayload
(String pushMagicValue) Returns a JSON representation of a Mobile Device Management "wake up" payload.Methods inherited from class com.eatthepath.pushy.apns.util.ApnsPayloadBuilder
addCustomProperty, setActionButtonLabel, setAlertBody, setAlertSubtitle, setAlertTitle, setAttributes, setAttributesType, setBadgeNumber, setCategoryName, setContentAvailable, setContentState, setDismissalDate, setEvent, setInterruptionLevel, setLaunchImageFileName, setLocalizedActionButtonKey, setLocalizedAlertMessage, setLocalizedAlertSubtitle, setLocalizedAlertTitle, setMutableContent, setPreferStringRepresentationForAlerts, setRelevanceScore, setShowActionButton, setSound, setSound, setSoundFileName, setStaleDate, setSummaryArgument, setSummaryArgumentCount, setTargetContentId, setThreadId, setTimestamp, setUrlArguments, setUrlArguments
-
Constructor Details
-
SimpleApnsPayloadBuilder
public SimpleApnsPayloadBuilder()
-
-
Method Details
-
build
Description copied from class:ApnsPayloadBuilder
Returns a JSON representation of the push notification payload under construction.- Specified by:
build
in classApnsPayloadBuilder
- Returns:
- a JSON representation of the payload under construction
- See Also:
-
buildMdmPayload
Description copied from class:ApnsPayloadBuilder
Returns a JSON representation of a Mobile Device Management "wake up" payload.- Specified by:
buildMdmPayload
in classApnsPayloadBuilder
- Parameters:
pushMagicValue
- the "push magic" string that the device sends to the MDM server in aTokenUpdate
message- Returns:
- a JSON representation of an MDM "wake up" notification payload
- See Also:
-