iOS devices don't receive notifications for some templates

Aleksandar Petkovic 31 Reputation points
2025-09-03T14:44:10.0266667+00:00

We use seven tags and twelve templates to send notifications to devices. For Android devices, this works without any issues. However, for iOS devices only, some templates don't receive any notifications. The templates that don't receive notifications appear to be different per device. I've put together a utility to test sending a notification to each template and can replicate the issue. I have verified that all the templates are registered successfully for a specific device, and the service accepts the request. Also, it's not an issue with the tag expression. I've tested for that and verified that different templates work for different iOS devices. Plus, Android devices always work. It appears to be an issue with Azure Notification Hubs or a hard limit that applies to iOS only. Can someone with visibility into Azure Notification Hubs back-end help troubleshoot the issue?

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

1 answer

Sort by: Most helpful
  1. Vishvani Jilukara 555 Reputation points Microsoft External Staff Moderator
    2025-09-04T17:32:35.5933333+00:00

    Hii Aleksandar Petkovic**
    **
    The problem can lie in how Azure Notification Hubs interacts with ios notification, particularly around template handling and payload delivery.

    1. Azure Notification Hubs iOS SDK Setup This guide outlines the full integration process and emphasizes correct environment targeting
    2. Diagnosing Notification Failures This guide 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.
    3. Debugging Notification Hubs : In iOS, if your app is running (even in the background), it will catch your notification. To make the notification show, you must implement the application:didReceivePushNotification: method in your AppDelegate class. Also, if your json payload is incorrect, APNS will accept the notification but the device will not display anything.
    4. Apple’s Payload Size Limit APNS enforces a maximum payload size of 4KB (4096 bytes). If any template exceeds this, it will be dropped without feedback.

       You can mark it 'Accept Answer' if this helped you

       Regards,

       Vishvani

    0 comments No comments

Your answer

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