report接口返回的内容和文档不符
Barbery opened this issue · 5 comments
Barbery commented
调用php sdk的$report->getReceived
返回以下内容
array:3 [
"body" => array:1 [
0 => array:1 [
"msg_id" => "1743871206"
]
]
"http_code" => 200
"headers" => array:9 [
0 => "HTTP/1.1 200 OK"
"Server" => "nginx"
"Date" => "Thu, 09 Nov 2017 03:03:25 GMT"
"Content-Type" => "application/json"
"Transfer-Encoding" => "chunked"
"Connection" => "keep-alive"
"X-Rate-Limit-Limit" => "2400"
"X-Rate-Limit-Remaining" => "2399"
"X-Rate-Limit-Reset" => "60"
]
]
没有看到文档中说明的:
Response Params
JSON Array.
android_received Android 送达。如果无此项数据则为 null。
ios_apns_sent iOS 通知推送到 APNs 成功。如果无此项数据则为 null。
ios_apns_received iOS 通知送达到设备。如果无项数据则为 null。统计该项请参考 集成指南高级功能 。
ios_msg_received iOS 自定义消息送达数。如果无此项数据则为null。
wp_mpns_sent winphone通知送达。如果无此项数据则为 null。
helperhaps commented
确实是这样的,经我测试,需要等待一些时间(几秒)才会有数据
Barbery commented
@helperhaps
我现在再用msg_id=1743871206去调用getReceived会返回http请求超时,这是为什么呢?
helperhaps commented
超时那就是 API 的问题,你可以去这里反馈下 https://community.jiguang.cn/
Barbery commented
@helperhaps
最奇怪的是,一发送就获取report是可以的只是数据字段没有,过一会(例如sleep 10秒)再去获取report,就会http超时了
helperhaps commented
@Barbery 我知道你的情景,去 https://community.jiguang.cn/ 这里反馈下吧,或者发邮件到 support@jiguang.cn (用户反馈的话,处理会比较及时一些)