通过接口推送消息到IOS,返回消息都是正确的,但是IOS却收不到推送消息

_7en1lc1p17
2019-11-19 02:25 238 0

推送接口:
public static PushPayload buildPushObject_ios_tagAnd_alertWithExtrasAndMessage() {
return PushPayload.newBuilder()
.setPlatform(Platform.ios())
.setAudience(Audience.alias("145"))
.setNotification(Notification.newBuilder()
.addPlatformNotification(IosNotification.newBuilder()
.setAlert("mess1")
.setBadge(4)
.setSound("happy")
.addExtra("from", "JPush")
.build())
.build())
.setMessage(Message.content("mess2"))
.setOptions(Options.newBuilder()
.setApnsProduction(true)
.build())
.build();
}

返回消息:
09:08:04.159 [main] DEBUG cn.jiguang.common.connection.NativeHttpClient - Created instance with connectionTimeout 5,000, readTimeout 30,000, maxRetryTimes 3, SSL Version TLS
09:08:05.258 [main] DEBUG cn.jiguang.common.connection.NativeHttpClient - Created instance with connectionTimeout 5,000, readTimeout 30,000, maxRetryTimes 3, SSL Version TLS
09:08:05.261 [main] DEBUG cn.jiguang.common.connection.NativeHttpClient - Created instance with connectionTimeout 5,000, readTimeout 30,000, maxRetryTimes 3, SSL Version TLS
09:08:05.263 [main] DEBUG cn.jiguang.common.connection.NativeHttpClient - Created instance with connectionTimeout 5,000, readTimeout 30,000, maxRetryTimes 3, SSL Version TLS
09:08:05.352 [main] DEBUG cn.jiguang.common.connection.NativeHttpClient - Send request - POST https://api.jpush.cn/v3/push
09:08:05.352 [main] DEBUG cn.jiguang.common.connection.NativeHttpClient - Request Content - {"platform":["ios"],"audience":{"alias":["145"]},"notification":{"ios":{"alert":"mess1","extras":{"from":"JPush"},"badge":"5","sound":"happy"}},"message":{"msg_content":"mess2"},"options":{"sendno":1420848761,"apns_production":true}}
09:08:05.951 [main] DEBUG cn.jiguang.common.resp.ResponseWrapper - JPush API Rate Limiting params - quota:600, remaining:599, reset:60
09:08:05.951 [main] DEBUG cn.jiguang.common.connection.NativeHttpClient - Succeed to get response OK - responseCode:200
09:08:05.951 [main] DEBUG cn.jiguang.common.connection.NativeHttpClient - Response Content - {"sendno":"1420848761","msg_id":"38280629445632309"}

奇怪的是IOS就是收不到消息?

1个回答

热门排序