I'm currently using Pusher for push notifications to my web app's front end (web).
I just learned about Azure's Notification Hub.
Could I use Azure Notification Hub the same way I do Pusher? I only ever see MS talking about Notification Hub in the context of mobile apps.
Azure's Notification Hub is targeted to mobile platforms.
So I don't think it's suitable for your web app.
You can switch to https://socket.io
Related
I have an external vendor who would like me to subscribe to their Azure Web PubSub service from which I will receive notifications when a certain event occurs. What is the best way to subscribe to these events from my own Azure environment? I am familiar with handling HTTP requests from Azure Functions and Azure Logic Apps, but this is my first time using Websockets within Azure (and I am new to Azure itself).
Edit: Also, I have read the documentation on Azure Web PubSub and have followed along with some of the tutorials. Most either show how to subscribe from a C# console application or a web app, but what if I want to kick off a workflow in Azure when the notification is received?
subscribe to their Azure Web PubSub service from which I will receive notifications when a certain event occurs
Looks like you will be acting as the event handler upstream role. You can have an app server running and listen to the CloudEvents HTTP request from Azure Web PubSub service. https://learn.microsoft.com/en-us/azure/azure-web-pubsub/reference-cloud-events
Here is a sample about handling events: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/tutorial-build-chat?tabs=csharp#handle-events
I'm planning to register devices from mobile app using tag account no (this is unique per account with more than one device linked to an account). This is done using Azure Notification Hub SDK on mobile app (Android and iOS).
Following registration, send notifications targeting account numbers from application back end (.Net application) to notification hub. Is this a correct approach? I'm assuming we follow a common template for all PNS servers (Apple and Google) when the notification is sent to hub.
Can you please advise.
Thanks for asking question! To Integrate Azure Notification Hubs into mobile apps you can follow below steps:
Set up Push Notification Services and Azure Notification Hub.
Use Register templates and tags with the Azure Notification Hub.
Create a cross-platform Xamarin.Forms application.
Configure the native Android project for push notifications.
Configure the native iOS project for push notifications.
Test notifications using the Azure Notification Hub.
Create a backend application to send notifications.
To add to this, Push notifications deliver information from a backend system to a mobile application. Apple, Google, and other platforms each have their own Push Notification Service (PNS).
Azure Notification Hubs enable you to centralize notifications across platforms so your backend application can communicate with a single hub, which takes care of distributing the notifications to each platform-specific PNS.
Reference: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/data-cloud/azure-services/azure-notification-hub
I am currently working on Azure notification hub, so instead of using a windows app, I want to use azure Web App and push notifications, will that be possible? and also help me with the required links.
I am building a POC IoT project and was analyzing various IoT cloud platforms that would suit the purpose.
Is it possible for Azure ASP.NET Web forms application to consume IoT device data read by Azure IoT Hub?
Maybe this? https://blogs.msdn.microsoft.com/uk_faculty_connection/2016/03/30/presenting-data-from-an-iot-device-onto-a-azure-website/
Seems to do what you are asking for though it does run on Azure which might not be what you want.
I am new to Azure Notification Hub. I am implementing Azure Notification Hub for sending push notifications to mobile apps developed using Cordova.
Can anyone show me some sample code to create TAGS from ASP.Net Azure SDK?
When you subscribe to the tag from your app, it saves in backend as a part of the Registration entity. Then you just send the notification to that tag. You can see the registrations in the backend using Visual Studio or Service Bus Explorer.