Thanks for reaching here! I understand Q&A Assist was not helpful to you. Please consider below response.
It seems that you are facing an issue while sending a toast notification using Azure Notification Hubs. The error message
"The Notification payload is invalid" indicates that the payload you are sending is not in the correct format.
Make sure that you are using the correct XML format for the toast notification. You can refer to the following link for the correct format: https://docs.microsoft.com/windows/uwp/design/shell/tiles-and-notifications/toast-xml-schema.
It seems like the XML payload you are using is correct and should work. However, there might be some issue with the way you are sending the notification. Could you please verify below things
- Check if you have provided the correct values for the required fields in the XML payload, such as the text for the toast message.
- Verify that the package identity and publisher identity in the
Package.appxmanifest file match the values in the Azure portal.
- Ensure that the notification payload is less than 5KB in size.
If you have already verified above things and the issue still persists, you can try using a different template for the toast notification.
You can refer to the following link for more information on the different other methods for Toast notifications: https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/adaptive-interactive-toasts?tabs=appsdk
If the issue still persists, could you please reach out to us by sending an email with subject line “Attn:Sneha |thread title” to AzCommunity[at]microsoft[dot]com referencing this thread, would like to take deeper investigation on this.