APNS排除文档

1
.
确定用户账号最后登录的设备为
iOS
,且直接
kill
APP
2
.
查看用户
user
详情,看账号下是否有
deviceToken
和推送的证书名。
需要知道用户的
appkey
和要接收推送用户的环信
id
和密码。
curl -X POST -H "Accept: application/json" -H "Content-Type:
application/json" -d ' {
"grant_type": "password",
"username": "6001",
"password": "111111"
}' https://a1.easemob.com/easemob-demo/chatdemoui/token
返回数据
{"access_token":"YWMtzR5tEAj3EeWLtUcITs16DAAAAU7oIdp5SqSMfzmp6W1m3mk9o
IdWVzIq5A4","expires_in":5184000,"user":{"uuid":"e53af1ba-34c3-11e4-
8f74-
71c02dbc8e58","type":"user","created":1409897669707,"modified":1436956
040026,"device_token":
"ffc77c6f835382c69998c7fc9b89f1596de212bb689882701118ae27c69bde02","us
ername":"6006","activated":true,"notification_no_disturbing":true,"not
ification_no_disturbing_start":22,"notification_no_disturbing_end":7,"
notification_display_style":1,"backup_data_size":22152,"backup_parts":
1,"backup_paths":["https://a1.easemob.com/easemob-
demo/chatdemoui/chatfiles/a8418a20-f968-11e4-b62d-
6128c5d1d816"],"backup_time":0,"nickname":"6006","notification_ignore_
1405332620595":false,"notification_ignore_1410340540005":false,"notifi
cation_ignore_1410341148690":true,"notification_ignore_1415707037953":
true,"notification_ignore_1415779641519":false,"notification_ignore_14
15786528740":true,"notification_ignore_1416381259511":false,"notificat
ion_ignore_1420514814971":false,"notification_ignore_1420538666720":fa
lse,"notification_ignore_1421657236397854":false,"notification_ignore_
1421807415466":true,"notification_ignore_1423465023741":true,"notifica
tion_ignore_1423801438121":false,"notification_ignore_1423801701826":f
alse,"notifier_name": "chatdemoui_dev"}}
可以放到格式化工具中格式化
http://tool.oschina.net/codeformat/json
格式化后显示为
 
 
 
{
"access_token":
"YWMtzR5tEAj3EeWLtUcITs16DAAAAU7oIdp5SqSMfzmp6W1m3mk9oIdWVzIq5A4",
"expires_in": 5184000,
"user": {
"uuid": "e53af1ba-34c3-11e4-8f74-71c02dbc8e58",
"type": "user",
"created": 1409897669707,
"modified": 1436956040026,
"username": "6006",
"activated": true,
"notification_no_disturbing": true,
"notification_no_disturbing_start": 22,
"notification_no_disturbing_end": 7,
"notification_display_style": 1,
"backup_data_size": 22152,
"backup_parts": 1,
"backup_paths": [
"https://a1.easemob.com/easemob-
demo/chatdemoui/chatfiles/a8418a20-f968-11e4-b62d-6128c5d1d816"
],
"backup_time": 0,
"device_token":
"ffc77c6f835382c69998c7fc9b89f1596de212bb689882701118ae27c69bde02",
"nickname": "6006",
"notification_ignore_1405332620595": false,
"notification_ignore_1410340540005": false,
"notification_ignore_1410341148690": true,
"notification_ignore_1415707037953": true,
"notification_ignore_1415779641519": false,
"notification_ignore_1415786528740": true,
"notification_ignore_1416381259511": false,
"notification_ignore_1420514814971": false,
"notification_ignore_1420538666720": false,
"notification_ignore_1421657236397854": false,
"notification_ignore_1421807415466": true,
"notification_ignore_1423465023741": true,
"notification_ignore_1423801438121": false,
"notification_ignore_1423801701826": false,
"notifier_name": "chatdemoui_dev"
}
}
3
.
查看是否有
deviceToken
notifier_name
对应上面的
 
 
"device_token":
"ffc77c6f835382c69998c7fc9b89f1596de212bb689882701118ae27c69bde02",
"notifier_name": "chatdemoui_dev"
4
.
与用户确定
notifier_name
是否正确。用户可以到环信管理后台中
im
用户下看到登录用户
notifier_name
。可以从推送证书中看到已经上传的证书名称,确保这两个数据一致。
到此步可以确定用户客户端配置无误以及上传了证书。
5
.
如果用户说收不到
apns
,可以使用
apns-test-all
测试用户证书是否正确。此步需要用户
提供上传到环信管理后台的
p12
文件、密码以及是开发环境
/
生成环境。
jar
下载地
http://pan.baidu.com/s/1sjxDqg9
jar
提示
-a,--alert <a> (
%
)
&!'
,
8.
'easemob
&6
'
-b,--badge <b> (
%
) badge
*
,
8.
1
-c,--p12_base64 <c> (
%
)

base64
</
p12
 !'
,
 

REST
#$!'
,
-
, p12_file

p12_base64,
p12_base64_file
09+;
-cf,--p12_base64_file <cf> (
%
)

base64
</
p12
 =
,

REST
!'(7 
,
-

,
p12_file

p12_base64, p12_base64_file
09
+;
-d,--distribution <d> (
09
)

p12
26
,
2
,

5
true
-f,--p12_file <f> (
%
) p12
 =
,
-
, p12_file

p12_base64,p12_base64_file
09+;
-p,--password <p> (
09
) p12
 :/
-s,--sound <s> (
%
)
& +1),
,
8.
default
-t,--token <t> (
09
)
#"&34
token
jar
使用方法
PushTest$ java jar apns-test-all.jar -f demoAPNS_dev.p12 -t
ffc77c6f835382c69998c7fc9b89f1596de212bb689882701118ae27c69bde02 -d
false -p 111111
-f demoAPNS_dev.p12:apns
证书
-t
ff
c77c6f835382c69998c7fc9b89f1596de212bb689882701118ae27c69bde02
deviceToken
-d false
是否是生产(线上)证书
-p 111111
证书密码
 
 
 
如果使用此方式可以收到推送,上传后无法收到,请确定当前环信推送是否正常,如果
正常,可以让用户重新上传证书测试。
6
.
如果用以上方式收不到推送,可以让用户参考视频
http://v.youku.com/v_show/id_XMTI4NjAwMjQyOA==.html
请确保用户导出
p12
时使用的电脑和创建
CertificateSigningRequest.certSigningRequest
文件的电脑是同一台。
posted @ 2018-05-30 20:06  sundaysios  阅读(758)  评论(0)    收藏  举报