ApplePush-0.1: Library for Apple Push Notification ServiceContentsIndex
ApplePush.Notification
Description
Creates JSON notification payloads for the Apple Push Notification Service
Synopsis
makeRawNotification :: [(String, JSValue)] -> String
makeNotification :: Maybe (Either String [(String, JSValue)]) -> Maybe Integer -> Maybe String -> Maybe [(String, JSValue)] -> String
Documentation
makeRawNotification :: [(String, JSValue)] -> String
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)] -> String
Makes a notification, takes an alert(stringdictionary), integer, string for the sound, and any user data (keyvalue dictionary.)
Produced by Haddock version 2.3.0