NovuN
Novuβ€’3y ago
serafeimo

APNS missing topic

Hi all!

I'm trying to send a push notification using APNS provider but I'm getting an error that (I think) indicates that there's something missing from the configuration.

{
"stack": "Error: 85a57fd53908d108da4c3fe1da073677c418e3bb7674f96e2cb46bcc69eb8a3c failed for reason: MissingTopic\n at APNSPushProvider.<anonymous> (/usr/src/app/providers/apns/build/main/lib/apns.provider.js:84:35)\n at step (/usr/src/app/providers/apns/build/main/lib/apns.provider.js:44:23)\n at Object.next (/usr/src/app/providers/apns/build/main/lib/apns.provider.js:25:53)\n at fulfilled (/usr/src/app/providers/apns/build/main/lib/apns.provider.js:16:58)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)",
"message": "85a57fd53908d108da4c3fe1da073677c418e3bb7674f96e2cb46bcc69eb8a3c failed for reason: MissingTopic"
}

The configuration for the APNS provider in Novu requires:
  1. Private Key
  2. Key ID
  3. Team ID
After searching in Google, I found out that the "topic" is actually the "bundleId". Other apps that provide APNS testing requires that (bundleid/topic) to be set together with the rest of the parameters (private key, keyid, teamid) before setting the payload and sending the notification.

I'm not familiar with APNS, so I'm not sure if my assumption is correct but I tried placing this parameter in payload and overrides objects without any luck.

Any help would be highly appreciated!

Thanks!
Was this page helpful?