The Token obtained from the Token Provider is wrong

XamarinDeveloper 1 Reputation point
2021-06-25T10:29:45.25+00:00

My notifications come on Android but on iOS I can't receive it. When I test it from Azure portal I get this message "The Token obtained from the Token Provider is wrong". I also tested it from postman, I got status 200 OK. I have been struggling for long time. I don't konow what I do. I have tried everything 😰😤 😱
Thank for your help 😊

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

1 answer

Sort by: Most helpful
  1. ajkuma 26,131 Reputation points Microsoft Employee
    2021-06-28T13:32:14.937+00:00

    @XamarinDeveloper ,

    1/2

    Apologies for the delay in responding here.
    I understand you have tried multiple things but the issue still persist, so it can be frustrating.

    Typically, the error message indicates either that the credentials configured in Notification Hubs are invalid or that there's an issue with the registrations in the hub.
    We only support FCM/GCM through Firebase and iOS/Apple through APNS.

    Kindly review the APNS side of things. Kindly review the app id/key and then re-try (if you haven’t done already). Or you could delete this registration and let the client re-create the registration before sending the message.

    You must add platform credentials to the Azure portal. If no notifications are reaching the device, the first step is to ensure the correct credentials are configured in Notification Hubs. The credentials must match the application that's created under a platform-specific developer account.


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.