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.
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.
[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
payload
is incorrect. you need to use specified payload for APNS as defined by apple guidelines. ReferExamples of JSON Payloads
section in apple documentation for more details. – Dipen Panchasara