简体   繁体   English

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

[英]Unable to send push notification to iOS devices in an IBM Worklight app

We are trying to implement push notification in our project. 我们正在尝试在我们的项目中实现推送通知。 We were successfully able to implement it for Android and Windows but are unable to do so for iOS. 我们已经成功地在Android和Windows上实现了它,但在iOS上却无法实现。

The device is registered successfully for push notification and can see the device in Worklight console but when we send the notification we get the following error. 该设备已成功注册以进行推送通知,并且可以在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

After some time I get this error 一段时间后,我收到此错误

[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

This error is caused due to incorrect .p12 file. 此错误是由于不正确的.p12文件引起的。 Please take a look at this thread . 请看一下这个线程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM