Safe Haskell | None |
---|---|
Language | Haskell2010 |
Apple Push Notification service on-the-wire types.
These Haskell types are injections to their synonyms in the APNS JSON spec. See <https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html#//apple_ref/doc/uid/TP40008194-CH10-SW1 here> and <https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html#//apple_ref/doc/uid/TP40008194-CH17-SW1 here> for details.
These types are only sent to APNS (via SNS) and are never
received on the wire, so they are not instances of FromJSON,
only ToJSON
.
Not all valid APNS fields are represented in these Haskell
types; only the fields used by pinpon
are implemented.
A partial representation of the APNS alert
dictionary. See
<https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html#//apple_ref/doc/uid/TP40008194-CH17-SW4
here> for details.
Note that while the APNS wire protocol permits an alert
to be
represented as a single JSON string, rather than a dictionary, we
only support the dictionary representation.
defaultAlert :: Alert Source #
A pinpon
-specific default value for Alert
.
A partial representation of the APNS aps
dictionary. See
<https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html#//apple_ref/doc/uid/TP40008194-CH17-SW2
here> for details.
defaultAps :: Aps Source #
A pinpon
-specific default value for Aps
.
The top-level APNS dictionary object. See <https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html#//apple_ref/doc/uid/TP40008194-CH10-SW15 here> for details.
Note that objects other than the aps
dictionary may be included
in APNS payloads, but as pinpon
doesn't use them, that
functionality is not implemented.
defaultPayload :: Payload Source #
A pinpon
-specific default value for an APNS Payload
.