Closed casevictor closed 8 years ago
Got this as well... running a REST API on node with underlying node-apn to send notifications.
The first notification is sent properly with the promise methods called. Further notifications are not sent, until i reconnect (new instance of apn.provider)
Greetings
Duplicate of #449
@iliraga do you had a workaround for that?
I tried to compare apnConnection
with null
but did'nt work.
@casevictor I reconnect each time I want to resend stuff through a lazy apnConnection-Initializer. The old instance is usually killed by the GC because no reference to it can be found anymore then. So for each send-batch I reconnect to APNs... Jeah I know it's bad.
@florianreinhart Do you have a clue about what going on with this socket problem ? Maybe it is a node bug?
@casevictor Could this node-http2 issue be the reason for your initial issue?
I'm using the latest version, just like the examples but sometime after a period of time or a number of messages sent, the promise wasn't call until I restarted de App.
Anyone got this behavior also?