Esempio n. 1
0
 static void Events_OnDeviceSubscriptionIdChanged(PushSharp.Common.PlatformType platform, string oldDeviceInfo, string newDeviceInfo, PushSharp.Common.Notification notification)
 {
     try
     {
         Console.WriteLine("Device Registration Changed:  Old-> " + oldDeviceInfo + "  New-> " + newDeviceInfo);
     }
     catch (Exception ms)
     {
         Console.WriteLine("Error " + ms.Message);
     }
 }
Esempio n. 2
0
 static void Events_OnChannelDestroyed(PushSharp.Common.PlatformType platformType, int newChannelCount)
 {
     Console.WriteLine("Channel Destroyed for: " + platformType.ToString() + " Channel Count: " + newChannelCount);
 }
Esempio n. 3
0
 static void Events_OnDeviceSubscriptionExpired(PushSharp.Common.PlatformType platform, string deviceInfo, PushSharp.Common.Notification notification)
 {
     Console.WriteLine("Device Subscription Expired: " + platform.ToString() + " -> " + deviceInfo);
 }
Esempio n. 4
0
 static void Events_OnChannelException(Exception exception, PushSharp.Common.PlatformType platformType, PushSharp.Common.Notification notification)
 {
     Console.WriteLine("Channel Exception: " + platformType.ToString() + " -> " + exception.ToString());
 }
Esempio n. 5
0
 static void Events_OnDeviceSubscriptionIdChanged(PushSharp.Common.PlatformType platform, string oldDeviceInfo, string newDeviceInfo, PushSharp.Common.Notification notification)
 {
     //Currently this event will only ever happen for Android GCM
     Console.WriteLine("Device Registration Changed:  Old-> " + oldDeviceInfo + "  New-> " + newDeviceInfo);
 }
Esempio n. 6
0
 static void Events_OnDeviceSubscriptionExpired(PushSharp.Common.PlatformType platform, string deviceInfo, PushSharp.Common.Notification notification)
 {
     Console.WriteLine("Device Subscription Expired para el dispo: " + notification.Tag.ToString().Split('|')[6] + "|" + platform.ToString() + " -> " + deviceInfo);
 }