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); } }
static void Events_OnChannelDestroyed(PushSharp.Common.PlatformType platformType, int newChannelCount) { Console.WriteLine("Channel Destroyed for: " + platformType.ToString() + " Channel Count: " + newChannelCount); }
static void Events_OnDeviceSubscriptionExpired(PushSharp.Common.PlatformType platform, string deviceInfo, PushSharp.Common.Notification notification) { Console.WriteLine("Device Subscription Expired: " + platform.ToString() + " -> " + deviceInfo); }
static void Events_OnChannelException(Exception exception, PushSharp.Common.PlatformType platformType, PushSharp.Common.Notification notification) { Console.WriteLine("Channel Exception: " + platformType.ToString() + " -> " + exception.ToString()); }
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); }
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); }