Azure / azure-notificationhubs-dotnet

.NET SDK for Azure Notification Hubs
MIT License
70 stars 119 forks source link

[BUG] GetRegistrationsByChannel filters to ChannelUri #237

Open mpodwysocki opened 1 year ago

mpodwysocki commented 1 year ago

Describe the bug

By default, the GetRegistrationsByChannel hard codes the pnsHandle to equal ChannelUri which is only valid for WNS/MPNS, whereas other providers have DeviceToken. See GetAllRegistrationsImplAsync where it hard codes to ChannelUri.

Exception or Stack Trace Add the exception log and stack trace if available

To Reproduce Steps to reproduce the behavior:

Code Snippet Add the code snippet that causes the issue.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Setup (please complete the following information):

Additional context Add any other context about the problem here.

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report