Cannot send a push notification to an IOS app (react-native) that runs RocketChat SDK

Description

Hey, we have a custom app that has a chat option powered by the RocketChat. While on Android we do receive a silent push notification via FCM, when we send the push notification on IOS devices, we get the following error:

Push ➔ debug Could not send notification id: “undefined”, Error: Cannot read property ‘send’ of undefined
Push ➔ debug TypeError: Cannot read property ‘send’ of undefined at sendAPN (app/push/server/apn.js:48:16) at PushClass.sendNotificationNative (app/push/server/push.js:87:5) at app/push/server/push.js:208:16 at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1141:16) at Cursor. [as forEach] (packages/mongo/mongo_driver.js:920:44) at PushClass.sendNotification (app/push/server/push.js:201:35) at PushClass.send (app/push/server/push.js:325:9) at PushNotification.send (app/push-notifications/server/lib/PushNotification.js:70:15) at NotificationClass.push (app/notification-queue/server/NotificationQueue.ts:102:20) at app/notification-queue/server/NotificationQueue.ts:74:12 at /snap/rocketchat-server/1491/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40

Server Setup Information

  • Version of Rocket.Chat Server: 3.18.3
  • Operating System:
  • Deployment Method:
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version: v12.22.1
  • MongoDB Version: 3.6.14 / wiredTiger (oplog Enabled)
  • Proxy:
  • Firewalls involved: