I need to send a significant volume of notifications. Historically, we've used SNS to make this happen, but it's a pain to use and correlate with successes and failures. After some searching, I ventured out and found node-apn. It took about 15 minutes to get certs, make a simple app, and receive my first notification. I was thrilled.
Pretty quickly, I started getting errors when performing a mass send: (node:49860) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 wakeup listeners added. Use emitter.setMaxListeners() to increase limit.
We need to send out 10000+ notifications daily, and node-apn seemed to choke on 10000, 1000, and even batches of 100. I've promisified the smaller-batch sends, but seeing as provider startup and shutdown processes are not promises, I have no way to neatly make this happen. Can someone provide some guidance?
Thanks much!