Ejemplo n.º 1
0
        public static bool SendNotiMsgToList(List <string> clientidlist, string title, string content, bool isIOS)
        {
            if (isIOS)
            {
                TransmissionTemplate iOSNotiTemplate = Push.GetIOSNotiTemplate(title, content);
                return(Push.PushMsgToList(clientidlist, iOSNotiTemplate));
            }
            NotificationTemplate androidNotiTemplate = Push.GetAndroidNotiTemplate(title, content);

            return(Push.PushMsgToList(clientidlist, androidNotiTemplate));
        }
Ejemplo n.º 2
0
        public static bool SendNotiMsgToSingle(string clientid, string title, string content, bool isIOS)
        {
            if (isIOS)
            {
                TransmissionTemplate iOSNotiTemplate = Push.GetIOSNotiTemplate(title, content);
                return(Push.PushMsgToSingleDevice(clientid, iOSNotiTemplate));
            }
            NotificationTemplate androidNotiTemplate = Push.GetAndroidNotiTemplate(title, content);

            return(Push.PushMsgToSingleDevice(clientid, androidNotiTemplate));
        }