Test Send fails for Toast but works for Raw

Scott Tattrie 15 Reputation points
2024-08-28T17:38:27.7566667+00:00

NotificationHub -Test Send fails for Toast but works for Raw. Says payload is incorrect, but it is generated by Azure?

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

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 18,551 Reputation points
    2024-11-23T06:17:15.76+00:00

    when sending notifications to Toast, you want to make the payload adheres to the specific format and requirements is crucial. usually "payload incorrect" errors means there is a mismatch between the expected payload structure and what's being sent.

    Here are a few troubleshooting steps:

    1. Make sure the payload matches the Toast notification schema and all required fields, such as title, body, and visual elements, are present and correctly format. Also, the built-in test send feature in the Azure portal can help validate your payload before sending it to real devices.
    2. You want to verify that your platform configuration for Toast notifications is correct, including the necessary credentials and certificates. If you're using template notifications, ensure that the template is valid and that you're providing the correct parameters.
    3. Lastly, enable detailed logging in your Notification Hub to capture more information about the error. Look for any specific error messages or exceptions that might provide clues about the issue.

    Hope that helps.

    -Grace

    0 comments No comments

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.