yes in general direction is correct. For sending push notifications you will need connection string to NH. Each NH has own connection string regardless of are they located in the same NH namespace or in different namespaces. In order to send push notifications to all devices you have to enumerate all these connection strings.
When device is registered in particular NH - this device will get push notification which is sent with connection string of this NH. For more advanced scenarios (like sending push notification to particular user or device) several things are needed:
- push notifications should be created with tags (which will allow to use tag rules to send push notification to particular user/device). Eg. userId = '...'
- you need to know in which particular NH this user/device is registered. For that you may use database table and store infromation about existing registrations there and their relation with particular NH
With this approach you may use more than 2 namespaces and multiple notification hubs per single namespace.