TomWillemin-6431, Firstly, apologies for the delay in responding from over the weekend. And, sorry for the long post, I'm trying to provide more insights for your 2 questions:
- Installations and Registrations are tied directly to a device with the push channel being the way Notification Hub (NH) communicate with the PNS.
Just to highlight the difference on installation vs registration: The installation or registration (depending on the API you are using), is tied uniquely to a single device through its Platform Notification Service (PNS) unique ID.
If you have two devices, this means that you will have two different installations/registrations.
-Please do share more details about your requirement/scenario --Maybe your requirement is similar to this discussion thread --
“Can Azure push the same notification to multiple apps (different bundle Id's) from one notification hub”.
“If this is the case -Unfortunately, this is not possible to do with Notification Hubs. You would need to set up multiple hubs for each bundle ID and each app would then register with the specific hub they belong to. Also, this is even recommended just between sandbox/production usage for an app developer – Example: have a myhub-sandbox and myhub-production. The sandbox hub would hold the sandbox credential and the production hub the production credentials. Then the client app itself should know which variant it is and register with the correct hub. Then push the identical notification to each of the hubs you want to target.”
2.It looks like you’re referring to the device registrations (there are two patterns for registering devices -registering from the device directly to the notification hub, and registering through the application backend) – yes, these registrations are transient, just similar to the PNS handles that they contain, registrations expire. You can set the time to live for a registration on the Notification Hub, up to a maximum of 90 days.
--This limit means that they must be periodically refreshed, so after 3 months (90 days) - this automatic expiration also simplifies cleanup when your mobile application is uninstalled.