NovuN
Novu9mo ago
artiebay

Multi-tenant + Pushpad for Push Notifications (Active blocker for our development!)

Hey everyone. I work at Bask, which you guys actually have featured in your homepage!

We are trying to use Novu as a way to deliver push notifications via Pushpad. But as a white-label application, we have a multi-tenant architecture. To accomplish this, I am planning on the following:
  • Use a different tenant on Novu for each of our tenants
  • Add a different Integration in the Integration page, per tenant as well
    • Each integration links to a different Pushpad Sender/Project (Different ProjectID)
To accomplish the above, we need the following:
  • An API that allows us to create a Tenant without using the Dashboard <- This is essential. I don't see it in the API Reference docs. Any multi-tenant architecture would require an API actually. Impossible to manage manually
  • An API that allows us create a new integration and set a condition for the tenant <- This looks like it is already supported, but I would appreciate an example for the payload since I don't see it in the API Reference Docs an option for a "Tenant".
Also, a couple of additional questions:
  • Is there a hard cap on how many active "Integrations" we can have? This could be a problem as we have more tenants support push notifications for their users
  • Is there maybe another to pass the "ProjectID" to Pushpad a different way? Maybe when we call https://api.novu.co/v1/events/trigger we can just specify it in the body somehow. This could be a workaround from the need of tenants and all of the above (Since we internally keep the project/sender id)
We could use Webhooks to implement this and forward to Pushpad ourselves / keep push tokens internally. But it would defeat a lot of the purpose of using Novu to broker our user-facing notifications
Was this page helpful?