Esempio n. 1
0
        public void GcmNotification_Priority_Should_Serialize_As_String_High()
        {
            var n = new GcmNotification();

            n.Priority = GcmNotificationPriority.High;

            var str = n.ToString();

            Assert.IsTrue(str.Contains("high"));
        }
Esempio n. 2
0
        public void GcmNotification_Priority_Should_Serialize_As_String_Normal()
        {
            var n = new GcmNotification();

            n.Priority = GcmNotificationPriority.Normal;

            var str = n.ToString();

            Assert.IsTrue(str.Contains("normal"));
        }
Esempio n. 3
0
        void gcmPush_OnNotificationFailed(GcmNotification notification, AggregateException exception)
        {
            ContadorNoEnviados++;

            StringBuilder sb = new StringBuilder();

            sb.AppendLine("================================================================================");
            sb.AppendLine("Notificacion: " + notification.ToString());
            sb.AppendLine("Error: " + exception.Message);

            EscribirEnLog(sb.ToString());
        }