Question

I remembered during the Notification Hub preview, we used to call the method RefreshRegistration (or something similar, presumably there's different flavour of this on different device SDK), so that the device registration get refreshed in the notification hub, and not automatically removed after 90 days.

In the GA version of Notification Hub devices SDK, I can't find the this method anymore. A few questions I hope experts in the Notification Hub can help:

  1. Is the reason behind the missing RefreshRegistration method, means that we no longer need to call a different function, instead, we should always call the 'regular' version of registration (e.g. RegisterTemplate/RegisterNavite, etc.) every time?
  2. What is the best practice on calling the registration (to Notification Hub) method? Should we make a registration call on every launch of the mobile app?
Was it helpful?

Solution

I can't definitively answer the question about why it was removed, but I can definitely say that the best practice is to re-register for notifications on every launch of the mobile app.

The "Get started" page (http://azure.microsoft.com/en-us/documentation/articles/notification-hubs-ios-get-started/) recommends putting the registration in this method: didFinishLaunchingWithOptions

We've found that this practice works best for our solution.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top