Created
February 16, 2013 14:56
-
-
Save mmenozzi/4967244 to your computer and use it in GitHub Desktop.
APNS Payload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$body = array( | |
'aps' => array( | |
'alert' => $message, | |
'badge' => 1, | |
'sound' => 'default' | |
) | |
); | |
if (!is_null($section)) { | |
$body['section'] = $section; | |
} | |
// Encode the payload as JSON | |
$payload = json_encode($body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment