From b431ccc67b4ca9a25fc418c8053e79d3f1f16b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=8D=E5=93=B2?= Date: Mon, 6 Mar 2017 15:54:30 +0800 Subject: [PATCH 1/3] update max length 2048kb --- src/main/java/com/dbay/apns4j/model/ApnsConstants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } From 913b362e51568a60ac63033ee86c2978fd8b158c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=8D=E5=93=B2?= Date: Tue, 4 Jul 2017 17:54:23 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d80b7c7..31a7dfa 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,6 @@ 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")銆傛敞鎰忎笉鑳借涓虹┖涓诧紝鍚﹀垯涓嶅搷锛岃涓轰换鎰忎覆鍧囧彲銆 +encoding: UTF-8 From 04b6e2364a518ceb1fa87798ef20a75d3066d230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=8D=E5=93=B2?= Date: Tue, 4 Jul 2017 17:55:06 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 31a7dfa..bd04b6c 100644 --- a/README.md +++ b/README.md @@ -66,4 +66,3 @@ Tips ================== 2014-09-22锛歩os8鏇存柊鍚庯紝濡傛灉娌℃湁璁剧疆澹伴煶(Payload.setSound())锛岄偅涔堟墜鏈烘敹鍒版帹閫佸緢鍙兘涓嶅搷銆 姝ゆ椂闇瑕佹洿鏂癲bay-apns4j鍖咃紝鎴栬呰嚜宸辫缃笅澹伴煶銆俥g: Payload.setSound("xx")銆傛敞鎰忎笉鑳借涓虹┖涓诧紝鍚﹀垯涓嶅搷锛岃涓轰换鎰忎覆鍧囧彲銆 -encoding: UTF-8