Push notifications stopped being sent

Yury 26 Reputation points
2022-12-14T12:58:15.337+00:00

Hello!

The push notifications stopped being sent. I did not make any changes in the sending code or in the hub. What can be wrong?

var result = await Hub.SendWindowsNativeNotificationAsync(toastBuilder.ToString());  

result.State = Enqueued
result.TrackingId = "87621e1e-b154-4680-9566-2c71129a9857"

270583-sc.png

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.
259 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 15,606 Reputation points
    2022-12-15T05:17:04.557+00:00

    Hi @Yury

    We are sorry to hear you are facing difficulties with your Push notifications.

    Is this a development/test environment and with a limited set of registrations?

    If it is, "you can get insight into push notification service errors, by using [EnableTestSend] property. This property is automatically enabled when you send test messages from the portal or Visual Studio client. You can use this property to see detailed debugging information and also via APIs. Currently, you can use it in the .NET SDK. It will be added to all client SDKs eventually."

    To use the EnableTestSend property with the REST call, append a query string parameter called test to the end of your send call. For example:

    https://mynamespace.servicebus.windows.net/mynotificationhub/messages?api-version=2013-10&test  
    

    For other ways to troubleshoot the issue, please take a look at this Azure documentation: https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-push-notification-fixer

    Hope that helps. Please let us know if you have further questions

    Thanks,
    Grace

    ------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--