Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Apple push notification service for Node.js
JavaScript
Branch: master
Pull request Compare This branch is 1 commit ahead, 2 commits behind jpoz:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
.gitignore
LICENSE
README.md
apns.js

README.md

apns-node

Apple push notification service for Node.js

Warning

You need node v0.1.92 for apns-node :-)

Usage

var pem_path = './secure.pem'
// openssl pkcs12 -in mycert.p12 -out client-cert.pem -nodes -clcerts

var device_id = require('fs').readFileSync('./device_id.txt');
// remember to remove "<", ">" and " "'s

var APNS = require('apns').createServer(pem_path);
APNS.notify(device_id, {alert:"Hello", sound: "default", badge:7});

Copyright

Copyright (c) 2010 James Pozdena. See LICENSE for details.

Something went wrong with that request. Please try again.