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

标签 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

最佳答案

此错误是由于 .p12 文件不正确造成的。请看这个thread .

关于ios - 无法在 IBM Worklight 应用程序中向 iOS 设备发送推送通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32609597/

相关文章:

javascript - Nodejs Server 有没有可以集成的第三方推送服务?

javascript - 什么时候使用 WL.App.sendActionToNative?

ios - 是否可以将 native iOS 应用程序转换为 Web 应用程序?

ios - MobileFirst 平台运营分析 - 日志屏幕访问时间和自定义崩溃详细信息

ios - 如何在本地通知中启用声音?

ios - RestKit 映射字符串数组和同一对象的 keyPath 值

ios - UITableViewController tableView :cellForRowAtIndexPath returns wrong row

ios - 重复使用带有文本字段的单元格

ios - 推送通知应用程序背景 iOS 9 swift

ios - 保持iOS App唤醒以监控运动