Configuring hubs and Namespaces

Sreejit Vijayan 21 Reputation points
2020-12-10T08:04:33.027+00:00

We have different bundle ids for public and Enterprise versions of our app and it has both android and iOS versions. What would be the recommended configuration of namespaces and hubs. Would the below approach work?

Public App

Namespace 1 - Hub 1 - Dev
Namespace 1 - Hub 2 - Prod

Enterprise App (distributed through MDM)

Namespace 2 - Hub 3 - Dev
Namespace 2 - Hub 4 - Prod

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
329 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
0 comments No comments
{count} votes

Accepted answer
  1. sadomovalex 3,631 Reputation points
    2020-12-16T20:37:19.3+00:00

    it depends on how many users you expect will use both apps and how often push notifications will be sent. Namespace is top-level container and hubs are created within namespace. All 3 pricing tiers (Free, Basic and Standard) have limitation on number of active devices per namespace (500 for free, 200000 for basic and 10 million for standard) and number of pushes (1 million for free, 10 millions for basic and 10 millions for standard) - additional pushes are charged with extra cost. So if you expect that overall number of your users won't exceed 200000 you may go with single namespace and create 4 hubs there: 2 for dev and prod version of basic app and 2 others for dev/prod versions of enterprise app. It will also save you from additional costs because charging is done based on number of used namespaces (currently €8.433/month for basic and €168.66/month for standard).

    If you expect that number of active devices will be higher than 200000 then it worth to use 2 namespace or use 1 namespace and standard price tier (which supports 10 million active devices).

    More details can be found on Notification Hubs pricing page.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. JarvanZhang 23,961 Reputation points
    2020-12-10T12:08:30.51+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Hi, the namespace is a collection of hubs in one region. It's recommended mapping matches one namespace with one app. Within a namespace, you can have a 'public' hub that works with the public version app, an Enterprise hub that works with the Enterprise app.

    Check the doc: https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-push-notification-faq#what-is-the-resource-structure-of-notification-hubs

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.