diff --git a/README.md b/README.md index d80b7c7..bd04b6c 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Features * High performance and easy to use * Gets started quickly with demos * Supports connection pooling -* 中英双语注释,英语小白阅读起来也没问题 +* 涓嫳鍙岃娉ㄩ噴锛岃嫳璇皬鐧介槄璇昏捣鏉ヤ篃娌¢棶棰 * Supports resend notifications after error * Creates new socket automatically when idle * Supports the Feedback Service @@ -64,5 +64,5 @@ You can send an email to me: lzhc2004@163.com Tips ================== -2014-09-22:ios8更新后,如果没有设置声音(Payload.setSound()),那么手机收到推送很可能不响。 -此时需要更新dbay-apns4j包,或者自己设置下声音。eg: Payload.setSound("xx")。注意不能设为空串,否则不响,设为任意串均可。 +2014-09-22锛歩os8鏇存柊鍚庯紝濡傛灉娌℃湁璁剧疆澹伴煶(Payload.setSound())锛岄偅涔堟墜鏈烘敹鍒版帹閫佸緢鍙兘涓嶅搷銆 +姝ゆ椂闇瑕佹洿鏂癲bay-apns4j鍖咃紝鎴栬呰嚜宸辫缃笅澹伴煶銆俥g: Payload.setSound("xx")銆傛敞鎰忎笉鑳借涓虹┖涓诧紝鍚﹀垯涓嶅搷锛岃涓轰换鎰忎覆鍧囧彲銆 diff --git a/src/main/java/com/dbay/apns4j/model/ApnsConstants.java b/src/main/java/com/dbay/apns4j/model/ApnsConstants.java index 5c03f84..2779acc 100644 --- a/src/main/java/com/dbay/apns4j/model/ApnsConstants.java +++ b/src/main/java/com/dbay/apns4j/model/ApnsConstants.java @@ -40,7 +40,7 @@ public class ApnsConstants { public static final int ERROR_RESPONSE_BYTES_LENGTH = 6; - public static final int PAY_LOAD_MAX_LENGTH = 256; + public static final int PAY_LOAD_MAX_LENGTH = 2048; public static final String CHARSET_ENCODING = "UTF-8"; }