according to the example https://github.com/argon/node-apn/blob/master/examples/sending-to-multiple-devices.js you are sending notifications to multiple devices but cannot tell when the sending of all devices is finished (of course using counters and other methods can be employed)
Would it not be better to use callbacks (err,result) paradigm or at least promises built in? So it would be best integrated with node-async for example.
This way we need to keep track of notifications that are returned in the event listeners argument.
according to the example https://github.com/argon/node-apn/blob/master/examples/sending-to-multiple-devices.js you are sending notifications to multiple devices but cannot tell when the sending of all devices is finished (of course using counters and other methods can be employed)
Would it not be better to use callbacks (err,result) paradigm or at least promises built in? So it would be best integrated with node-async for example.
This way we need to keep track of notifications that are returned in the event listeners argument.