Unable to receive Push Notification in iOS Device (iPhone)

Namratha Prakash 11 Reputation points
2020-07-23T18:18:02.557+00:00

Hi,

I am trying to integrate Push Notification using Azure Notification Hub.

Azure Portal
Created a New notification hub and added required setting in APNS
I tried with both Authentication Mode(Certificate/Token)

Client
Receiving logs saying "Registered for push notifications with token: <devicetoken>"
But unable to receive the test Push notification sent to iPhone

in portal receiving success message saying when test notification sent to Apple Platform
"Successfully sent test message. Outcome: {0 passed, 0 failed}. Please see result section for details."

Please help me out in this, Also I am not able to find any documentation/Tutorial kind for Integrating with an iOS app using Swift.

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

3 answers

Sort by: Most helpful
  1. Showndarya Madhavan 346 Reputation points
    2020-07-24T06:38:50.457+00:00

    Hi @Namratha Prakash

    This documentation should help you with the certification/token generation process to check if you are following the right steps: https://learn.microsoft.com/en-us/azure/notification-hubs/ios-sdk-get-started

    While generating the push certificate, try the Production Push Certificate if Developer isn't working as it helps sometimes even if you are using XCode and select the same accordingly in the azure portal while setting up authentication (production or sandbox)

    Hope this helps!


  2. sadomovalex 3,631 Reputation points
    2020-08-26T15:02:48.883+00:00

    hello, how exactly do you send push notifications: via custom app or from Azure portal > Notification hub > Test? I would recommend first send them via Azure portal - if they will work from there then problem may be in the custom client.

    Also I highly recommend to use Visual Studio 2019 Server Explorer when you work with Azure notification hubs. It allows to see list of all active device registrations (Android and Apple), their tags and expiration dates - very useful feature which is missing is Azure portal. It also allows to send test push notifications and see sending details per registration ids. More details can be found here: Visual Studio Server Explorer.

    dn530751.46dad9ca-937d-4463-a392-73c0b55504de(azure.100).png

    0 comments No comments

  3. Soumyadip Banerjee 1 Reputation point
    2021-05-19T11:53:28.773+00:00

    I'm facing this exact same issue. I can see the device registered in the notification hub using the GetAllRegistrationsAsync() method in my .net api. But when I send the message from portal using that tag I'm getting the same message:
    "Successfully sent test message. Outcome: {0 passed, 0 failed}. Please see result section for details."

    Also in the Result section
    Message was successfully sent, but there were no matching targets.

    0 comments No comments

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.