http://autumnrain-zgq.iteye.com/blog/1743279

苹果平台开发的应用程序,不支持后台运行程序,所以苹果有一个推送服务在软件的一些信息推送给用户。 
JAVA中,有一个开源软件,JavaPNS实现了Java平台中连接苹果服务器与推送消息的服务。但是在使用的过程中,有两点需要使用者注意一下,希望后续使用的同志们能避免我走过的覆辙。 
1、一是向苹果的服务推送消息时,如果遇到无效的deviceToken,苹果会断开网络连接,而JavaPNS不会进行重连。苹果原文: 
    If you send a notification and APNs finds the notification malformed or otherwise unintelligible, it returns an error-response packet prior to disconnecting. (If there is no error, APNs doesn’t return anything.) Figure 5-3 depicts the format of the error-response packet. 
2、JavaPNS是一条条发送通知的,但是对于大规模发送的生产环境,显然是不可以的,建议使用批量发送。苹果原文: 
The binary interface employs a plain TCP socket for binary content that is streaming in nature. For optimum performance, you should batch multiple notifications in a single transmission over the interface, either explicitly or using a TCP/IP Nagle algorithm. 

对于此,我对JavaAPNS的代码进行了改动,使其支持批量发送和苹果断开重连,但是有一个问题需要大家注意一下,在正常发送的情况下,苹果是不会向Socket中写任何数据的,需要等待其读超时,this.socket.getInputStream().read(),确订推送结果的正常。通过持续的向Socket中写数据,实现批量发送,调用flush方法时,完成一次批量发送。在PushNotificationManager增加如下方法: 
Java代码  收藏代码
  1. public List<ResponsePacket> sendNotification(List<PushedNotification> pnl) {  
  2.         logger.info(psn + "RR批量推送时消息体的大小为:" + pnl.size());  
  3.         List<ResponsePacket> failList = new ArrayList<ResponsePacket>();  
  4.         if (pnl.size() == 0) {  
  5.             return failList;  
  6.         }  
  7.         Set<Integer> sendSet = new HashSet<Integer>();  
  8.         int counter = 0;  
  9.         while (counter < pnl.size()) {  
  10.             try {  
  11.                 this.socket.setSoTimeout(3000);  
  12.                 this.socket.setSendBufferSize(25600);  
  13.                 this.socket.setReceiveBufferSize(600);  
  14.                 for (; counter < pnl.size(); counter++) {  
  15.                     PushedNotification push = pnl.get(counter);  
  16.                     if (sendSet.contains(push.getIdentifier())) {  
  17.                         logger.warn("信息[" + push.getIdentifier() + "]已经被推送");  
  18.                         continue;  
  19.                     }  
  20.                     byte[] bytes = getMessage(push.getDevice().getToken(), push.getPayload(), push.getIdentifier(), push);  
  21.                     this.socket.getOutputStream().write(bytes);  
  22.                     // 考虑到重发的问题  
  23.                     // sendSet.add(push.getIdentifier());  
  24.                 }  
  25.                 this.socket.getOutputStream().flush();  
  26.                 // 等待回馈数据,比单个发送时延时长一点,否则将无法获取到回馈数据  
  27.                 this.socket.setSoTimeout(1000);  
  28.   
  29.                 StringBuffer allResult = new StringBuffer();  
  30.                 ResponsePacket rp = new ResponsePacket();  
  31.                 int readCounter = 0;  
  32.                 // 处理读回写数据的异常  
  33.                 try {  
  34.                     logger.info(psn + "检查流数据是否可用:" + this.socket.getInputStream().available());  
  35.                     byte[] sid = new byte[4];// 发送标记  
  36.                     while (true) {  
  37.                         int value = this.socket.getInputStream().read();  
  38.                         if (value < 0) {  
  39.                             break;  
  40.                         }  
  41.                         readCounter++;  
  42.                         if (readCounter == 1) {  
  43.                             rp.setCommand(value);  
  44.                         }  
  45.                         if (readCounter == 2) {  
  46.                             rp.setStatus(value);  
  47.                         }  
  48.                         if (readCounter >= 3 && readCounter <= 6) {  
  49.                             sid[readCounter - 3] = (byte) value;  
  50.                             if (readCounter == 6) {  
  51.                                 rp.setIdentifier(ByteBuffer.wrap(sid).getInt());  
  52.                                 if (failList.contains(rp)) {  
  53.                                     logger.error("错误返馈数据中已经包含当前数据," + rp.getIdentifier());  
  54.                                 }  
  55.                                 failList.add(rp);  
  56.                             }  
  57.                         }  
  58.                         allResult.append(value + "_");  
  59.                     }  
  60.                     this.socket.getInputStream().close();  
  61.                 } catch (SocketTimeoutException ste) {  
  62.                     logger.debug(psn + "消息推送成功,无任何返回!", ste);  
  63.                 } catch (IOException e) {  
  64.                     logger.debug(psn + "消息推送成功,关闭连接流时出错!", e);  
  65.                 }  
  66.                 logger.info("苹果返回的数据为:" + allResult.toString());  
  67.                 if (readCounter >= 6) {  
  68.                     // 找到出错的地方  
  69.                     for (int i = 0; i < pnl.size(); i++) {  
  70.                         PushedNotification push = pnl.get(i);  
  71.                         if (push.getIdentifier() == rp.getIdentifier()) {  
  72.                             counter = i + 1;  
  73.                             break;  
  74.                             // 从出错的地方再次发送,  
  75.                         }  
  76.                     }  
  77.                     try {  
  78.                         this.createNewSocket();  
  79.                     } catch (Exception e) {  
  80.                         logger.warn("连接时出错,", e);  
  81.                     }  
  82.                 }  
  83.             } catch (SSLHandshakeException she) {  
  84.                 // 握手出错,标记不加  
  85.                 logger.warn("SHE消息推送时出错,", she);  
  86.                 try {  
  87.                     this.createNewSocket();  
  88.                 } catch (Exception e) {  
  89.                     logger.warn("连接时出错,", e);  
  90.                 }  
  91.             } catch (SocketException se) {  
  92.                 logger.warn("SE消息推送时出错", se);  
  93.                 counter++;  
  94.                 try {  
  95.                     this.createNewSocket();  
  96.                 } catch (Exception e) {  
  97.                     logger.warn("连接时出错,", e);  
  98.                 }  
  99.             } catch (IOException e) {  
  100.                 logger.warn("IE消息推送时出错", e);  
  101.                 counter++;  
  102.             } catch (Exception e) {  
  103.                 logger.warn("E消息推送时出错", e);  
  104.                 counter++;  
  105.             }  
  106.   
  107.             if (counter >= pnl.size()) {  
  108.                 break;  
  109.             }  
  110.         }  
  111.         return failList;  
  112.     }  
分享到:  
评论
16 楼 lixiangblue 2014-01-07  
在javapns2.2 中,重发确实存在bug。但是我发现。在注释重发后,notifications的返回结果会变得非常不准确(虽然不注释也不准确),所以根据系统的需求,如果需要比较准确的返回结果,还是不注销重发比较好,如果系统偏重与推送功能,对推送结果没有很高的要求,注释掉重发代码可以修复重复推送的bug。期待在以后的javapns版本中修复重复推送的bug。
15 楼 zhanghua_1199 2013-07-22  
在正常发送的情况下,苹果是不会向Socket中写任何数据的,需要等待其读超时。想问一下楼主,这个苹果读取超时是在哪看到的,能否给个链接?
14 楼 zhanghua_1199 2013-07-22  
lz,,,,你的
持续写入数据,遇到无效的deviceToken苹果会断开连接,并返回相应的消息编号,这时需要重新连接,再次发送数据
博文体现在哪里?是从这里开始吗:
if (readCounter >= 6) {  
                    // 找到出错的地方  



如果是,lz可以去看看javapns2.2版本的
PushNotificationManager.stopConnection()这个方法。这里面实现了重发。望回复。
13 楼 shanjh2000 2013-07-09  
请问,你的这个方法的输入参数: List<PushedNotification> pnl   怎么创建?
12 楼 autumnrain_zgq 2013-05-17  
lsqwind 写道
rock 写道
PushQueue支持重连,
源码:
Java代码  收藏代码
  1. private void sendNotification(PushedNotification notification, boolean closeAfter) throws CommunicationException {  
  2.         try {  
  3.             Device device = notification.getDevice();  
  4.             Payload payload = notification.getPayload();  
  5.             try {  
  6.                 payload.verifyPayloadIsNotEmpty();  
  7.             } catch (IllegalArgumentException e) {  
  8.                 throw new PayloadIsEmptyException();  
  9.             } catch (Exception e) {  
  10.             }  
  11.   
  12.             if (notification.getIdentifier() <= 0) notification.setIdentifier(newMessageIdentifier());  
  13.             if (!pushedNotifications.containsKey(notification.getIdentifier())) pushedNotifications.put(notification.getIdentifier(), notification);  
  14.             int identifier = notification.getIdentifier();  
  15.   
  16.             String token = device.getToken();  
  17.             // even though the BasicDevice constructor validates the token, we revalidate it in case we were passed another implementation of Device  
  18.             BasicDevice.validateTokenFormat(token);  
  19.             //      PushedNotification pushedNotification = new PushedNotification(device, payload);  
  20.             byte[] bytes = getMessage(token, payload, identifier, notification);  
  21.             //      pushedNotifications.put(pushedNotification.getIdentifier(), pushedNotification);  
  22.   
  23.             /* Special simulation mode to skip actual streaming of message */  
  24.             boolean simulationMode = payload.getExpiry() == 919191;  
  25.   
  26.             boolean success = false;  
  27.   
  28.             BufferedReader in = new BufferedReader(new InputStreamReader(this.socket.getInputStream()));  
  29.             int socketTimeout = getSslSocketTimeout();  
  30.             if (socketTimeout > 0this.socket.setSoTimeout(socketTimeout);  
  31.             notification.setTransmissionAttempts(0);  
  32.             // Keep trying until we have a success  
  33.             while (!success) {  
  34.                 try {  
  35.                     logger.debug("Attempting to send notification: " + payload.toString() + "");  
  36.                     logger.debug("  to device: " + token + "");  
  37.                     notification.addTransmissionAttempt();  
  38.                     boolean streamConfirmed = false;  
  39.                     try {  
  40.                         if (!simulationMode) {  
  41.                             this.socket.getOutputStream().write(bytes);  
  42.                             streamConfirmed = true;  
  43.                         } else {  
  44.                             logger.debug("* Simulation only: would have streamed " + bytes.length + "-bytes message now..");  
  45.                         }  
  46.                     } catch (Exception e) {  
  47.                         if (e != null) {  
  48.                             if (e.toString().contains("certificate_unknown")) {  
  49.                                 throw new InvalidCertificateChainException(e.getMessage());  
  50.                             }  
  51.                         }  
  52.                         throw e;  
  53.                     }  
  54.                     logger.debug("Flushing");  
  55.                     this.socket.getOutputStream().flush();  
  56.                     if (streamConfirmed) logger.debug("At this point, the entire " + bytes.length + "-bytes message has been streamed out successfully through the SSL connection");  
  57.   
  58.                     success = true;  
  59.                     logger.debug("Notification sent on " + notification.getLatestTransmissionAttempt());  
  60.                     notification.setTransmissionCompleted(true);  
  61.   
  62.                 } catch (IOException e) {  
  63.                     // throw exception if we surpassed the valid number of retry attempts  
  64.                     if (notification.getTransmissionAttempts() >= retryAttempts) {  
  65.                         logger.error("Attempt to send Notification failed and beyond the maximum number of attempts permitted");  
  66.                         notification.setTransmissionCompleted(false);  
  67.                         notification.setException(e);  
  68.                         logger.error("Delivery error", e);  
  69.                         throw e;  
  70.   
  71.                     } else {  
  72.                         logger.info("Attempt failed (" + e.getMessage() + ")... trying again");  
  73.                         //Try again  
  74.                         try {  
  75.                             this.socket.close();  
  76.                         } catch (Exception e2) {  
  77.                             // do nothing  
  78.                         }  
  79.                         this.socket = connectionToAppleServer.getSSLSocket();  
  80.                         if (socketTimeout > 0this.socket.setSoTimeout(socketTimeout);  
  81.                     }  
  82.                 }  
  83.             }  
  84.         } catch (CommunicationException e) {  
  85.             throw e;  
  86.         } catch (Exception ex) {  
  87.   
  88.             notification.setException(ex);  
  89.             logger.error("Delivery error: " + ex);  
  90.             try {  
  91.                 if (closeAfter) {  
  92.                     logger.error("Closing connection after error");  
  93.                     stopConnection();  
  94.                 }  
  95.             } catch (Exception e) {  
  96.             }  
  97.         }  
  98.     }  

我也看到这段代码了。确实是有重发功能,默认重发次数是3次。请教下楼主@ autumnrain_zgq 跟你写的这个方法比有哪些需要注意的地方?

这个代码正常情况下没有问题,遇到无效的deviceToken就无法重新发送信息了,还有,他不是批量提交信息的,
11 楼 lsqwind 2013-05-15  
rock 写道
PushQueue支持重连,
源码:
Java代码  收藏代码
  1. private void sendNotification(PushedNotification notification, boolean closeAfter) throws CommunicationException {  
  2.         try {  
  3.             Device device = notification.getDevice();  
  4.             Payload payload = notification.getPayload();  
  5.             try {  
  6.                 payload.verifyPayloadIsNotEmpty();  
  7.             } catch (IllegalArgumentException e) {  
  8.                 throw new PayloadIsEmptyException();  
  9.             } catch (Exception e) {  
  10.             }  
  11.   
  12.             if (notification.getIdentifier() <= 0) notification.setIdentifier(newMessageIdentifier());  
  13.             if (!pushedNotifications.containsKey(notification.getIdentifier())) pushedNotifications.put(notification.getIdentifier(), notification);  
  14.             int identifier = notification.getIdentifier();  
  15.   
  16.             String token = device.getToken();  
  17.             // even though the BasicDevice constructor validates the token, we revalidate it in case we were passed another implementation of Device  
  18.             BasicDevice.validateTokenFormat(token);  
  19.             //      PushedNotification pushedNotification = new PushedNotification(device, payload);  
  20.             byte[] bytes = getMessage(token, payload, identifier, notification);  
  21.             //      pushedNotifications.put(pushedNotification.getIdentifier(), pushedNotification);  
  22.   
  23.             /* Special simulation mode to skip actual streaming of message */  
  24.             boolean simulationMode = payload.getExpiry() == 919191;  
  25.   
  26.             boolean success = false;  
  27.   
  28.             BufferedReader in = new BufferedReader(new InputStreamReader(this.socket.getInputStream()));  
  29.             int socketTimeout = getSslSocketTimeout();  
  30.             if (socketTimeout > 0this.socket.setSoTimeout(socketTimeout);  
  31.             notification.setTransmissionAttempts(0);  
  32.             // Keep trying until we have a success  
  33.             while (!success) {  
  34.                 try {  
  35.                     logger.debug("Attempting to send notification: " + payload.toString() + "");  
  36.                     logger.debug("  to device: " + token + "");  
  37.                     notification.addTransmissionAttempt();  
  38.                     boolean streamConfirmed = false;  
  39.                     try {  
  40.                         if (!simulationMode) {  
  41.                             this.socket.getOutputStream().write(bytes);  
  42.                             streamConfirmed = true;  
  43.                         } else {  
  44.                             logger.debug("* Simulation only: would have streamed " + bytes.length + "-bytes message now..");  
  45.                         }  
  46.                     } catch (Exception e) {  
  47.                         if (e != null) {  
  48.                             if (e.toString().contains("certificate_unknown")) {  
  49.                                 throw new InvalidCertificateChainException(e.getMessage());  
  50.                             }  
  51.                         }  
  52.                         throw e;  
  53.                     }  
  54.                     logger.debug("Flushing");  
  55.                     this.socket.getOutputStream().flush();  
  56.                     if (streamConfirmed) logger.debug("At this point, the entire " + bytes.length + "-bytes message has been streamed out successfully through the SSL connection");  
  57.   
  58.                     success = true;  
  59.                     logger.debug("Notification sent on " + notification.getLatestTransmissionAttempt());  
  60.                     notification.setTransmissionCompleted(true);  
  61.   
  62.                 } catch (IOException e) {  
  63.                     // throw exception if we surpassed the valid number of retry attempts  
  64.                     if (notification.getTransmissionAttempts() >= retryAttempts) {  
  65.                         logger.error("Attempt to send Notification failed and beyond the maximum number of attempts permitted");  
  66.                         notification.setTransmissionCompleted(false);  
  67.                         notification.setException(e);  
  68.                         logger.error("Delivery error", e);  
  69.                         throw e;  
  70.   
  71.                     } else {  
  72.                         logger.info("Attempt failed (" + e.getMessage() + ")... trying again");  
  73.                         //Try again  
  74.                         try {  
  75.                             this.socket.close();  
  76.                         } catch (Exception e2) {  
  77.                             // do nothing  
  78.                         }  
  79.                         this.socket = connectionToAppleServer.getSSLSocket();  
  80.                         if (socketTimeout > 0this.socket.setSoTimeout(socketTimeout);  
  81.                     }  
  82.                 }  
  83.             }  
  84.         } catch (CommunicationException e) {  
  85.             throw e;  
  86.         } catch (Exception ex) {  
  87.   
  88.             notification.setException(ex);  
  89.             logger.error("Delivery error: " + ex);  
  90.             try {  
  91.                 if (closeAfter) {  
  92.                     logger.error("Closing connection after error");  
  93.                     stopConnection();  
  94.                 }  
  95.             } catch (Exception e) {  
  96.             }  
  97.         }  
  98.     }  

我也看到这段代码了。确实是有重发功能,默认重发次数是3次。请教下楼主@ autumnrain_zgq 跟你写的这个方法比有哪些需要注意的地方?
10 楼 autumnrain_zgq 2013-05-09  
sorehead 写道
autumnrain_zgq 写道
sorehead 写道
楼主可以贴一份完整的代码吗,我也在纠结这个问题。

下载下来JavaAPNS源代码项目,在PushNotificationManager这个类中增加我文章中增加的那个方法就可以了。其它地方我也没有改的,

 this.createNewSocket();  都做了些什么事情?只是重新建立一个socket连接吗?方便贴出这个方法吗?
                

Java代码  收藏代码
  1. public void createNewSocket() throws SocketException, KeystoreException, CommunicationException {  
  2.     logger.info(psn + "创建新的Socke的连接");  
  3.     if (this.socket != null) {  
  4.         try {  
  5.             socket.close();  
  6.         } catch (Exception e) {  
  7.             logger.info("关闭Socket连接时出错...", e);  
  8.         }  
  9.     }  
  10.     this.socket = connectionToAppleServer.getSSLSocket();  
  11.     this.socket.setSoTimeout(3000);  
  12.     this.socket.setKeepAlive(true);  
  13. }  
9 楼 sorehead 2013-05-08  
autumnrain_zgq 写道
sorehead 写道
楼主可以贴一份完整的代码吗,我也在纠结这个问题。

下载下来JavaAPNS源代码项目,在PushNotificationManager这个类中增加我文章中增加的那个方法就可以了。其它地方我也没有改的,

 this.createNewSocket();  都做了些什么事情?只是重新建立一个socket连接吗?方便贴出这个方法吗?
                
8 楼 autumnrain_zgq 2013-05-08  
sorehead 写道
楼主可以贴一份完整的代码吗,我也在纠结这个问题。

下载下来JavaAPNS源代码项目,在PushNotificationManager这个类中增加我文章中增加的那个方法就可以了。其它地方我也没有改的,
7 楼 sorehead 2013-05-08  
楼主可以贴一份完整的代码吗,我也在纠结这个问题。
6 楼 rock 2013-04-24  
PushQueue支持重连,
源码:
Java代码  收藏代码
  1. private void sendNotification(PushedNotification notification, boolean closeAfter) throws CommunicationException {  
  2.         try {  
  3.             Device device = notification.getDevice();  
  4.             Payload payload = notification.getPayload();  
  5.             try {  
  6.                 payload.verifyPayloadIsNotEmpty();  
  7.             } catch (IllegalArgumentException e) {  
  8.                 throw new PayloadIsEmptyException();  
  9.             } catch (Exception e) {  
  10.             }  
  11.   
  12.             if (notification.getIdentifier() <= 0) notification.setIdentifier(newMessageIdentifier());  
  13.             if (!pushedNotifications.containsKey(notification.getIdentifier())) pushedNotifications.put(notification.getIdentifier(), notification);  
  14.             int identifier = notification.getIdentifier();  
  15.   
  16.             String token = device.getToken();  
  17.             // even though the BasicDevice constructor validates the token, we revalidate it in case we were passed another implementation of Device  
  18.             BasicDevice.validateTokenFormat(token);  
  19.             //      PushedNotification pushedNotification = new PushedNotification(device, payload);  
  20.             byte[] bytes = getMessage(token, payload, identifier, notification);  
  21.             //      pushedNotifications.put(pushedNotification.getIdentifier(), pushedNotification);  
  22.   
  23.             /* Special simulation mode to skip actual streaming of message */  
  24.             boolean simulationMode = payload.getExpiry() == 919191;  
  25.   
  26.             boolean success = false;  
  27.   
  28.             BufferedReader in = new BufferedReader(new InputStreamReader(this.socket.getInputStream()));  
  29.             int socketTimeout = getSslSocketTimeout();  
  30.             if (socketTimeout > 0this.socket.setSoTimeout(socketTimeout);  
  31.             notification.setTransmissionAttempts(0);  
  32.             // Keep trying until we have a success  
  33.             while (!success) {  
  34.                 try {  
  35.                     logger.debug("Attempting to send notification: " + payload.toString() + "");  
  36.                     logger.debug("  to device: " + token + "");  
  37.                     notification.addTransmissionAttempt();  
  38.                     boolean streamConfirmed = false;  
  39.                     try {  
  40.                         if (!simulationMode) {  
  41.                             this.socket.getOutputStream().write(bytes);  
  42.                             streamConfirmed = true;  
  43.                         } else {  
  44.                             logger.debug("* Simulation only: would have streamed " + bytes.length + "-bytes message now..");  
  45.                         }  
  46.                     } catch (Exception e) {  
  47.                         if (e != null) {  
  48.                             if (e.toString().contains("certificate_unknown")) {  
  49.                                 throw new InvalidCertificateChainException(e.getMessage());  
  50.                             }  
  51.                         }  
  52.                         throw e;  
  53.                     }  
  54.                     logger.debug("Flushing");  
  55.                     this.socket.getOutputStream().flush();  
  56.                     if (streamConfirmed) logger.debug("At this point, the entire " + bytes.length + "-bytes message has been streamed out successfully through the SSL connection");  
  57.   
  58.                     success = true;  
  59.                     logger.debug("Notification sent on " + notification.getLatestTransmissionAttempt());  
  60.                     notification.setTransmissionCompleted(true);  
  61.   
  62.                 } catch (IOException e) {  
  63.                     // throw exception if we surpassed the valid number of retry attempts  
  64.                     if (notification.getTransmissionAttempts() >= retryAttempts) {  
  65.                         logger.error("Attempt to send Notification failed and beyond the maximum number of attempts permitted");  
  66.                         notification.setTransmissionCompleted(false);  
  67.                         notification.setException(e);  
  68.                         logger.error("Delivery error", e);  
  69.                         throw e;  
  70.   
  71.                     } else {  
  72.                         logger.info("Attempt failed (" + e.getMessage() + ")... trying again");  
  73.                         //Try again  
  74.                         try {  
  75.                             this.socket.close();  
  76.                         } catch (Exception e2) {  
  77.                             // do nothing  
  78.                         }  
  79.                         this.socket = connectionToAppleServer.getSSLSocket();  
  80.                         if (socketTimeout > 0this.socket.setSoTimeout(socketTimeout);  
  81.                     }  
  82.                 }  
  83.             }  
  84.         } catch (CommunicationException e) {  
  85.             throw e;  
  86.         } catch (Exception ex) {  
  87.   
  88.             notification.setException(ex);  
  89.             logger.error("Delivery error: " + ex);  
  90.             try {  
  91.                 if (closeAfter) {  
  92.                     logger.error("Closing connection after error");  
  93.                     stopConnection();  
  94.                 }  
  95.             } catch (Exception e) {  
  96.             }  
  97.         }  
  98.     }  
5 楼 autumnrain_zgq 2013-04-03  
鐜嬫旦 写道
鐜嬫旦 写道
pns 2.2版本不是支持群发嘛?

楼主,看到尽快回复下,,最近也在整这个

你好,是不支持群发的,群发的情况下,是在一个连接打开的情况下,持续写入数据,遇到无效的deviceToken苹果会断开连接,并返回相应的消息编号,这时需要重新连接,再次发送数据。博文的代码中这是这样实现的,
4 楼 鐜嬫旦 2013-04-02  
鐜嬫旦 写道
pns 2.2版本不是支持群发嘛?

楼主,看到尽快回复下,,最近也在整这个
3 楼 鐜嬫旦 2013-04-02  
pns 2.2版本不是支持群发嘛?
2 楼 autumnrain_zgq 2013-03-27  
linbaoji 写道
请问你的 JavaPNS 版本是什么 啊!??
谢谢1

你好,我查看一下,版本是:2.2
1 楼 linbaoji 2013-03-20  
请问你的 JavaPNS 版本是什么 啊!??
谢谢1