question

calvinsaw-8412 avatar image
0 Votes"
calvinsaw-8412 asked SnehaAgrawal-MSFT answered

Azure Notification Hub - Devices suddenly not receiving notifications

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered

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://docs.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://docs.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://docs.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.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.