Mohamed Koumenji, Firstly, apologies for the delayed response.
Based on my understanding of your issue. When you send a notification through Azure Notification Hub (ANH) and encounter an invalid device token, ANH will not return a response body that directly indicates which specific device token was invalid. Instead, you will receive a detailed error response that includes a tracking ID for the notification message. You can use this tracking ID to look up the notification outcome in the Azure portal, where you will find more information about the failure, including which device token was invalid.
The typical response codes you might receive are:
- 200: The notification was sent successfully.
- 400: There was an invalid request body; the notification could not be sent because the request was malformed.
- 401: There was an authorization failure; the access key was incorrect.
- 404: The notification hub was not found.
For more detailed information on handling errors and troubleshooting, you can refer to the Microsoft Learn documentation on managing notification hubs
- Update a notification hub
- Push notifications with Azure Notification Hubs: Frequently asked questions
- Diagnose dropped notifications in Azure Notification Hubs
If the answer helped (pointed, you in the right direction) > please click Accept Answer Or please share the requested/more info to help you better.