|
楼主 |
发表于 2018-7-18 13:46:02
|
显示全部楼层
本帖最后由 王亚龙 于 2018-7-18 14:05 编辑
别名PSN01在官网上做发送消息测试是没问题的。测试能输出时间。createSingleSchedule方法的三个参数值是:
UUID是:e624237580cb4a15a20f1f00107d902d时间是:2018-07-18 14:52:41
payload是:{"platform":"all","audience":{"alias":["PSN01"]},"notification":{"alert":"测试贵阳极光推送"},"options":{"sendno":1929659460,"time_to_live":86400,"apns_production":false}}。。以下是控制台信息::::AppKey 35a56b64b66748b4630bb127Secret 01cd03424526b044ac76ff1d
[http-8080-6] INFO cn.jpush.api.common.connection.NativeHttpClient - Created instance with _maxRetryTimes = 3
[http-8080-6] INFO cn.jpush.api.common.connection.NativeHttpClient - Created instance with _maxRetryTimes = 3
[http-8080-6] INFO cn.jpush.api.common.connection.NativeHttpClient - Created instance with _maxRetryTimes = 3
[http-8080-6] INFO cn.jpush.api.common.connection.NativeHttpClient - Created instance with _maxRetryTimes = 3
时间是:2018-07-18 14:42:35
[http-8080-6] WARN cn.jpush.api.common.connection.NativeHttpClient - Got error response - responseCode:400, responseContent:{"error":{"code":8100, "message":"The appkey does not exist."}}
[http-8080-6] ERROR cn.jpush.api.common.connection.NativeHttpClient - Your request params is invalid. Please check them according to error message.
{}
at cn.jpush.api.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:232)
at cn.jpush.api.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:94)
at cn.jpush.api.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:81)
at cn.jpush.api.schedule.ScheduleClient.createSchedule(ScheduleClient.java:58)
at cn.jpush.api.JPushClient.createSingleSchedule(JPushClient.java:433)
at jpush.Push.sendPushMessage(Push.java:99)
at jpush.Push.push(Push.java:67)
at jpush.Jpush__do.push(Jpush__do.java:43)
|
-
|