示例#1
0
        private void gcmPush_OnNotificationSucceeded(GcmNotification notification)
        {
            string token = "";

            try
            {
                token = notification.RegistrationIds.First();
                TokensSended.Add(token);
            }
            catch
            {
            }
            ContadorEnviados++;
        }
示例#2
0
        void apnsPush_OnNotificationSucceeded(ApnsNotification notification)
        {
            string token = "";

            try
            {
                token = notification.DeviceToken;
                TokensSended.Add(token);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
            ContadorEnviados++;
        }