Template notifications are only pushed to devices when EnableTestSend is true

N M 5 Reputation points
2024-09-26T12:43:12.7733333+00:00

Hi,

I'm trying to debug an issue where template notifications aren't being pushed to devices in a Production Notification Hub anymore. This used to work and is working in a separate sandbox Notification Hub.

I see EnableTestSend is used for diagnosing issues as per docs, but it doesn't give me any information about failures as the push notifications always get sent out to APNS and to the devices.

When I use Test Send via any means (in Azure Portal; setting EnableTestSend = true when creating the NotificationHubClient; or by appending &test to the post URL and sending the HTTP request myself) the notification will be pushed to devices as expected.

Setting EnableTestSend = false (through any of the means mentioned) and no other changes results in no notification.

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.