Can I send a template notification using Azure Notification Hub portal?

base2monk 0 Reputation points
2023-03-01T15:43:45.23+00:00

I'm evaluating ANH for use in our product and for our initial phase I want to test sending messages using the portal. I also want to use templates to send the notification but the documentation doesn't indicate whether this is possible via the portal.

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.
260 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 15,606 Reputation points
    2023-03-06T16:08:51.0133333+00:00

    Hi @base2monk

    Yes, your scenario is possible. You can send messages using the Azure portal and also use templates to send notifications. According to the Microsoft documentation, you can create a notification hub in the Azure portal and then configure the hub with platform notification system (PNS) settings. You can find the tutorial on how to create an Azure notification hub using the Azure portal in the following link: https://learn.microsoft.com/en-us/azure/notification-hubs/create-notification-hub-portal

    Regarding the use of templates, you can use the Notification Hubs client to send notifications from a Python back-end. You can find the tutorial on how to use Notification Hubs with Python in the following link: https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-python-push-notification-tutorial

    You can initialize your Notification Hubs client and then add the send code depending on your target mobile platform. The sample code also adds higher-level methods to enable sending notifications based on the platform, for example, send_windows_notification for Windows, send_apple_notification for Apple, etc.

    Hope that helps.

    -Grace

    0 comments No comments