timehop / apns

A Go package to interface with the Apple Push Notification Service
https://godoc.org/github.com/timehop/apns
MIT License
185 stars 47 forks source link

Connection Error Feedback #3

Closed taylortrimble closed 1 year ago

taylortrimble commented 9 years ago

Is there a provision for the apns.Client to notify the application when an APNS connection has been lost? I'm thinking I have a bug where I cannot connect to the APNS gateway, but I'm unable to get any visibility into the package if the connection is succeeding or not.

bdotdub commented 9 years ago

There isn't at the moment – we just assume it is recoverable by simply trying to reconnect. Any ideas where you would like this to send back an error? In the client initialization or from the err channel?

taylortrimble commented 9 years ago

Probably from the err channel in this case. I think we'd also have to make it clear to the end user that retrying is built into the package!