//推送给全部的设备,限IOS系统使用 public static string pushAllIos(long accessId, string secretKey, string content, int env) { MessageIOS message = new MessageIOS(); message.setAlert(content); message.setBadge(1); message.setSound("beep.wav"); XingeApp xinge = new XingeApp(accessId, secretKey); string ret = xinge.PushAllDevice(message, env); return(ret); }
//推送给绑定标签的设备,限IOS系统使用 public static string pushTagIos(long accessId, string secretKey, string content, string tag, int env) { MessageIOS message = new MessageIOS(); message.setAlert(content); message.setBadge(1); message.setSound("beep.wav"); XingeApp xinge = new XingeApp(accessId, secretKey); List <string> tagList = new List <string>(); tagList.Add(tag); string ret = xinge.PushTags(tagList, "OR", message, env); return(ret); }