Does Azure Notification Hub Support iOS VoIP Push Notifications?

Naresh Khuriwal 20 Reputation points
2024-11-15T14:28:02.5466667+00:00

I am using the paid service of Azure Notification Hub to send regular push notifications and VoIP push notifications. Regular push notifications are working fine for both Android and iOS. However, VoIP push notifications are not functioning on iOS.

I have updated the required payload and header parameters according to the documentation, but the notifications are still being sent as normal messages instead of VoIP messages.

For Android, VoIP push notifications are working as expected.

Could someone confirm if Azure Notification Hub supports iOS VoIP push notifications? If yes, are there specific configurations or steps I need to follow to enable it?

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
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
652 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 815 Reputation points Microsoft Vendor
    2024-11-18T08:42:11.9966667+00:00

    Hi @Naresh Khuriwal ,
    Welcome to the Microsoft Q&A Platform!
    Azure Notification Hub does support iOS VoIP push notifications, but certain specific configurations are required to ensure they are sent correctly.
    APNs VoIP Certificate

    Use a VoIP-specific APNs certificate generated from the Apple Developer portal.

    • Upload the .p12 file to Azure Notification Hub.
    • Include content-available: 1 in the payload to indicate background processing.
        {
            "aps": {
                "content-available": 1,
                "alert": {
                    "title": "Incoming Call",
                    "body": "You have an incoming call."
                }
            }
        }
      

    Headers

    Set the following headers:

    • apns-push-type: voip
    • apns-priority: 10
    • apns-topic: <Bundle Identifier>.voip

    Bundle Identifier

    Ensure the app’s Bundle Identifier matches the apns-topic.

    Device Token:

    • Use a VoIP-specific device token generated with
    pushRegistry.desiredPushTypes = [.voIP]
    

    Test with APNs

    • Use tools like curl to test VoIP push notifications directly with APNs.

    Azure Notification Hub Logs

    • Enable and review diagnostic logs in the Azure portal for errors or mismatches.
      If the answer is helpful, please click "Accept Answer" and kindly upvote it.

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.