This project is read-only.

How to send a Badge notification

We have learned how create object to send a notification, now we can send the notification.

How you can see, all previous documentation is summarized in this script.

//get token
$tok = GetToken();
//get a channel
$cha = GetNewChannel();
$Options = new WindowsNotification\WNSNotificationOptions();
$Options->SetAuthorization(new WindowsNotification\OAuthObject($tok)));
//NOTE: Set the badge type
$Notifier = new WindowsNotification\WindowsNotificationClass($Options);
//send a numeric badge 
//send a default badge
$cha = GetNewChannel();

Last edited May 16, 2015 at 4:28 PM by Andreabbondanza, version 3