Description
Hi,
I'm facing a strange problem where push notifications are working perfectly in the sandbox environment but not in production. We have verified that the .p12 certificate is working and can use the same certificate to send push notifications from another server application.
I'm using the node plugin for eclipse and stepping through the code and it appears that the notifications aren't being sent at all. The reason for this seems to be because the queue, to which the push tasks have been assigned, is paused - ie has its _paused field set to true.
However, no error is being thrown and as a result my node server thinks the push notifications have been sent, yet the devices never receive them.
It also appears that the exports.gatewayOptions function is being called repeatedly (I checked this to make sure it was picking up the correct host, in terms of sandbox and production) as a result of listOnTimeout() in timers.js, Agent._reconnect() in live.js, and Agent.connect() in live.js. For what it's worth, it is picking up the correct production URL, but the fact that this method is called repeatedly - every five seconds or so - made me wonder if there were somehow connection problems.
Can you help?
Thanks very much in advance.
Bob