How to Determine Invalid Token Status in Notification Hub Client Responses?

Rayanne 0 Reputation points
2024-07-10T19:12:28.57+00:00

Hi everyone,

I'm working with Azure Notification Hubs and I'm trying to verify the validity of device tokens after sending notifications using SendFcmV1NativeNotificationAsync and SendAppleNativeNotificationAsync.

Based on some forum discussions, it seems that the NotificationOutcome.Results[].Outcome object contains a status code that indicates the result of each send operation. Specifically, a status code of 8 supposedly identifies an invalid token. However, I couldn't find this information in the official Microsoft documentation.

Can anyone confirm if the Outcome status code 8 indeed signifies an invalid token? Additionally, are there other status codes we should be aware of for handling invalid tokens effectively?

Thank you in advance for your help!

Best regards,

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

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.