IOS Push notifications - Exception in callback of async function: Error: Connect timed out

Good day,

  • I installed Rocket.Chat on Google Cloud Platform according to this guide
  • I then configured IOS push notifications following this guide

Although I had some challenges getting the certificates loaded in Rocket.Chat admin interface at first, I eventually got it working correctly…

Now however I have another issue when testing push notifications I get this error in the log files:

Push: Send message “@user1” via query { userId: ‘tB3zyZoYaPvcbpLYY’ }
send to token { apn: ‘154af74266e8c1134a9cfed21ea361d4d947450808c3e7cb8f734496b2f0a67f’ }
Push: Sent message “@user1” to 1 ios apps 0 android apps
Exception in callback of async function: Error: Connect timed out
at Connection. (/app/bundle/programs/server/npm/node_modules/meteor/raix_push/node_modules/apn/lib/connection.js:193:36)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)

[Fri Jun 01 2018 12:52:44 GMT+0000 (UTC)] ERROR Error: Connect timed out
at Connection. (/app/bundle/programs/server/npm/node_modules/meteor/raix_push/node_modules/apn/lib/connection.js:193:36)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)

Please can someone assist me in finding the issue?

Many thanks in advance