CleverTap / apns-http2

A Java library for sending notifications via APNS using Apple's HTTP/2 API.
https://clevertap.com
BSD 3-Clause "New" or "Revised" License
216 stars 109 forks source link

How to handle socket timeout exception #62

Open nkmittal opened 4 years ago

nkmittal commented 4 years ago

When sending push message to APNS I need to handle socket timeout exception so that in case there is any issue while connecting to APNS (because of network or because of rate limiting by APNS or other reasons) I can gracefully handle it. I frequently face this issue while sending push messages to FCM APIs and the Java lib raises following exception there which I handle: java.util.concurrent.TimeoutException