question

XamarinDeveloper-4482 avatar image
0 Votes"
XamarinDeveloper-4482 asked RobCaplan edited

The Token obtained from the Token Provider is wrong

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered ajkuma-MSFT commented

@XamarinDeveloper-4482,

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@XamarinDeveloper-4482,

2/2

Some of the most common misconfigurations to check for: Diagnose dropped notifications in Azure Notification Hubs

Azure notification hub forward the send notification to the platform-specific infrastructures called Platform Notification Systems (PNSes) which can be APNS (Apple Push Notification Service ) for iOS devices and FCM (Firebase Cloud Messaging) for android devices and WNS for Windows devices.

Once notification is successfully delivered to PNSes then it is the job of PNSes to deliver the notification to the devices.

P.S. I see that you’d used ‘dotnet-ios’ tag, and one of our moderators added ‘azure-notification-hubs’ just a few hours ago.


0 Votes 0 ·