无法在IBM Worklight应用程序中向iOS设备发送推送通知

时间:2015-09-16 13:11:54

标签: ios push-notification ibm-mobilefirst

我们正在尝试在项目中实施推送通知。我们成功地为Android和Windows实现了它,但是无法为iOS实现。

设备已成功注册以进行推送通知,并且可以在Worklight控制台中查看该设备,但是当我们发送通知时,我们会收到以下错误。

[ERROR   ] Couldn't send message after 3 retries.Message(Id=2; Token="token"; Payload={"aps":{"alert":{"body":"gdf g dfg dfg","action-loc-key":null},"sound":"","badge":1},"payload":"{\"alias\":\"myPush\",\"custom\":\"data\"}"})
Remote host closed connection during handshake
[ERROR   ] FPWSE1083E: Failed to send APNS notification with identifier 2, device token: "Token"
Remote host closed connection during handshake

一段时间后我收到此错误

[WARNING ] Failed to retreive invalid devices
javax.net.ssl.SSLHandshakeException: Remote host closed connection during       handshake
[WARNING ] Failed to retreive invalid devices
javax.net.ssl.SSLHandshakeException: Remote host closed connection during     handshake
[WARNING ] Failed to retreive invalid devices
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
[ERROR   ] Couldn't get feedback connection
javax.net.ssl.SSLHandshakeException: Remote host closed connection during     handshake
[ERROR   ] Unknown exception: javax.net.ssl.SSLHandshakeException: Remote     host closed connection during handshake
Unknown exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

1 个答案:

答案 0 :(得分:1)

此错误是由于.p12文件不正确引起的。请查看此thread