//Create our push services broker var push = new PushBroker(); push.OnNotificationSent += NotificationSent; push.OnChannelException += ChannelException; push.OnServiceException += ServiceException; push.OnNotificationFailed += NotificationFailed; push.OnDeviceSubscriptionExpired += DeviceSubscriptionExpired; push.OnDeviceSubscriptionChanged += DeviceSubscriptionChanged; push.OnChannelCreated += ChannelCreated; push.OnChannelDestroyed += ChannelDestroyed; //Registering the Apple Service and sending an iOS Notification var appleCert = File.ReadAllBytes("PushnotificationDev.p12"); push.RegisterAppleService(new ApplePushChannelSettings(appleCert, "123456")); push.QueueNotification(new AppleNotification() .ForDeviceToken("0755ac6c555e9b9e819b15772e6bcb11d64c659d331a28cf7674050a20fa885i") .WithAlert("Hello World!")) ;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)