Open saggymac opened 7 years ago
Same problem with me.Have u deal it?
try to use const Notification = APNS.Notification();
instead of const Notification = APNS.Notification;
.
Let me know if problem still exist.
I solved this problem use ‘let Notification = require('./notification.js');’ And i push sucess to my app use my devicetoken. But when there are lots of msgs,(i use for methods and ngrinder to do some stress test) then The server will shut down with this error‘’
Are you creating new apnsClient
on each iteration ?
Yes!
create apnsClient outside the loop and call apnsClient.send
method inside the loop. Let me know if still problem exist.
Thanks i will try
is it resolved @wcyyo
Using ... node v8.0.0 npm 5.0.1 apns-http2 1.0.5 (globally installed, with symlink to local)
This is easily recreate-able by just using the sample code from this project's README.md.