Package com.eatthepath.pushy.apns.util
package com.eatthepath.pushy.apns.util
Contains classes for working with APNs tokens and payloads.
Push notification payloads are JSON strings that contain information about how the
receiving device should handle and display the notification. The
ApnsPayloadBuilder
class is a tool to construct payloads that comply with the
APNs specification.
Device tokens identify the device to which a push notification is being sent. Ultimately, tokens need to be
expressed as a string of hexadecimal characters, but a common practice is to transmit tokens as the output of
[NSData describe]
. The TokenUtil
class provides methods for
sanitizing token strings so they can be sent safely to the APNs gateway.
- Author:
- Jon Chambers
-
ClassDescriptionA base utility class for constructing JSON payloads suitable for inclusion in APNs push notifications.An enumeration of interruption levels that may be specified in a notification payload.An enumeration of accepted actions for Live Activity notification payloads.A simple APNs payload builder that serializes payloads using a
JsonSerializer
.A simple and immutable implementation of theApnsPushNotification
interface.A utility class for processing APNs token strings.