What Roles Are Necessary for Push Notification Channel Creation and Use?

Marc George 21 Reputation points

Are there any groups, users and/or role assignments currently needed to enable registrations for using a notification hub from a UWP app? I am currently getting 0x000006d9/EPT_S_NOT_REGISTERED when attempting to create a channel which I wasn't getting in the past. Eventually, the attempt times out and an exception is thrown.

I have been and I am currently using var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync(); to establish the channel via the Microsoft.Azure.NotificationHubs NuGet.

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.
281 questions
0 comments No comments
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 19,511 Reputation points

    @Marc George Thanks for reply! Could you please clarify where are you seeing that 0x000006d9/EPT_S_NOT_REGISTERED error?
    It’s doesn't seems to be typical Notification Hub response.

    As for the about portal and role assignments – currently Notification Hubs does not have AAD RBAC support. We just use the Access Policy connection strings. The string with “Listen” permission allows for registering devices with the hub and should be the one shipped with the application.

    Details: Notification Hubs security

    Hope that helps,

1 additional answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 19,511 Reputation points

    Thanks for asking question! If I have understood right, you want to send notifications to specific devices running Universal Windows Platform applications. As mentioned in this tutorial that the channel URI that's assigned by the Windows Notification Service (WNS) can change at any time and you should register for notifications frequently to avoid notification failures. This example registers for notification every time that the app starts.
    For apps that you run frequently, say, more than once a day, you can probably skip registration to preserve bandwidth if less than a day has passed since the previous registration.

    Please refer to this official document link: https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-windows-notification-dotnet-push-xplat-segmented-wns

    Check: Microsoft Azure - Azure Notification Hubs: Best Practices for Managing Devices

    Let us know if you have further query on this or issue remains.