ApplePush-0.1: Library for Apple Push Notification Service

ApplePush.Notification

Description

Creates JSON notification payloads for the Apple Push Notification Service

Synopsis

Documentation

makeRawNotification :: [(String, JSValue)] -> StringSource

Takes a list of key, JSValue pairs and converts them to a string

makeNotification :: Maybe (Either String [(String, JSValue)]) -> Maybe Integer -> Maybe String -> Maybe [(String, JSValue)] -> StringSource

Makes a notification, takes an alert(stringdictionary), integer, string for the sound, and any user data (keyvalue dictionary.)