Azure Notification Hub - Devices suddenly not receiving notifications

calvin saw 1 Reputation point
2021-04-01T06:33:46.25+00:00

Just recently, devices in IOS and Android are not receiving notifications from my app.
I have double checked connection string and hub name are all correct as well. I didn't make any changes.

I checked the notification hub overview, statistics shows there are success notifications but devices are not receiving them.

Has anyone came across issue like this?

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 19,841 Reputation points
    2021-04-01T12:23:41.94+00:00

    Thanks for asking question! If your notification doesn't arrive at the client device, an error might have occurred when Notification Hubs tried to deliver it to the push notification service. For example, the payload size might exceed the maximum allowed by the push notification service, or the credentials configured in Notification Hubs might be invalid.

    To get insight into push notification service errors, you can use the EnableTestSend property. This property is automatically enabled when you send test messages from the portal or Visual Studio client.

    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

    Further you can review telemetry using below steps:

    1. Go the portal on the Overview tab you can see an aggregated view of registrations, notifications, and errors by platform.
    2. On the Monitor tab, you can add many other platform-specific metrics for a deeper look. You can look specifically at errors that are returned when Notification Hubs tries to send the notification to the push notification service.
    3. Begin by reviewing Incoming Messages, Registration Operations, and Successful Notifications. Then, go to the per-platform tab to review errors that are specific to the push notification service.
    4. If the authentication settings for your notification hub are incorrect, the message PNS Authentication Error appears. It's a good indication to check the push notification service credentials.

    You may refer to this doc link for more details: https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-push-notification-fixer

    Check this link for the paths to diagnose the root cause of dropped notifications in Notification Hubs: https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-push-notification-fixer

    Refer to link for tools that are helpful when debugging your push notification configuration: https://learn.microsoft.com/en-us/previous-versions/azure/azure-services/dn530751(v=azure.100)?redirectedfrom=MSDN#result-codes

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

    0 comments No comments