Created
September 3, 2012 19:07
-
-
Save a-bx/3612466 to your computer and use it in GitHub Desktop.
APS - Sending a notification
This file contains 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
var noti = new apns.Notification(); | |
var device = new apns.Device("DEVICE-TOKEN"); | |
noti.sound = "notification.caf"; | |
noti.alert = "Message here!!"; | |
noti.payload = { }; //object with data if you want. | |
noti.device = device; | |
apnsConnection.sendNotification(noti); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment