Looking for an azure service to manage web push notifications - javascript

I'm implementing a notifications feature in an html5 web app I'm working on.
The feature requirements is to receive push notifications (strings) from the server and display them immediately on the user interface (to all clients), without saving them anywhere else.
I'm looking for a managed service on Azure cloud that allows send/onMessage functionalities very similar to WebSockets, that can be accessed directly by the browser.
I've tried using event-hubs, but that solution requires a node.js/SignalR wrapper which I can't use for this specific feature.
Thanks in advance!

It sounds like you want to implement a real-time notification feature for HTML5 App without any middleware like WebApp in Node/SignalR to connect a message queue like EventHubs. However, there seems to be not any solution for the needs without any backend services as HTTP middleware for browser if using EventHubs or other services like PubSub in Redis.
Per my experience, a only available solution is that using pouchdb within browser to synchronize with CouchDb on Azure to implement a PubSub service as notification service.
There is a opensource project on GitHub which you can refer to, please move to https://github.com/MattCollins84/couch-pubsub.
Hope it helps. Any concern, please feel free to let me know.

Chrome M52 and beyond started supporting the VAPID protocol, refer to https://chromestatus.com/feature/5573539073622016.
It seems that Azure does not yet provide VAPID support. As an alternative you can look into Firebase Cloud Messaging (FCM) which you can connect with Azure Notification Hub.
More on Firebase Cloud Messaging and web push html client: https://firebase.google.com/docs/cloud-messaging/js/client
More on Azure Notification Hub and connecting it with FCM:
https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-android-push-notification-google-fcm-get-started
VAPID stands for: Voluntary Application server Identification for web Push. Refer to https://datatracker.ietf.org/doc/html/rfc8292

Related

AWS SNS with FMC for SMS

I am developing a React native application where I want to sent an SMS for OTP. I used AWS SNS for publishing messages after subscribing them to a topic, but I found that the price is quite high since the SMS is transactional.
I wanted to use Firebase Messaging Cloud since they do it for free but I don't really know how to proceed with it. Do I have to createPlatformApplication and then do createPlatformEndpoint for every user to send messages? This is a bit confusing for me, so if someone could give me an overview of the initial processes, it would do me wonders.
This is how I am doing it now simply using subscribe and publish:
I understood your question as asking how you could deliver OTP codes using push notifications.
To do that, you would:
Set up a platform application through SNS: https://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-register.html
Create an endpoint for each end device you want to send these notifications to: https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html
Do a direct publish to that endpoint to send the notification only to that person: https://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-directmobile.html
For this use case, you do not need to use topics and subscriptions, since all of your messages will only be targeting one person.

How to Receive Push Notification on website using Parse JS SDK?

I have configured push notifications on Parse-Server & in Android app. But I am not able receive push notifications in a website using Parse JS SDK. They don't provide any method to subscribe for push notifications in ther JS APIs. There Documentation (JS) only talks about subscribing to mobile devices not browsers.
SUBSCRIBING TO CHANNELS
The JavaScript SDK does not currently support subscribing iOS and Android devices for pushes. Take a look at the iOS, Android or REST Push guide using the platform toggle at the top.
So, I concluded that web browsers can't subscribe just by using Parse JS SDK? So, how should I subscribe & receive Push notifications on a web browser from Parse Backend?
Update:
I haven't test but If I use ServiceWorker to get subscription & subscribe user to some channel, can I use the default Parse Class Installation for saving subscription & then use that (web) Installation in Cloud Code to send Push?
Parse-Server only supports iOS and Android push notifications. It doesn't even handle web sessions conveniently. There are no Installations for web, because you don't install things for web. There are Sessions, but those don't do anything for Push.
I have tested it and got achieved desired results via following. As Jake said, for web there are no Installations in Parse. So, in order to receive push notifications on the web, you have to
Register a Service worker to get pushSubscription and hande push, click events etc.
Save pushSubscription to server. It will be used to send pushes to Web.
Integrate Push notifications on Parse-Server (FCM etc) or web-push if you want.
Send push via Client SDK or Cloud Code, it must be received.
Further, the Installation class cannot be used for web pushes.

How to send push notifications to Google Firebase web application

Can anybody provide information on how to setup push notifications for a chrome web application?
How to setup topics, create new topics, delete topics and what the syntax would be.
I searched the internet using what tools we have and come up with nothing.
Thank you.
There is no client-side API for web applications to subscribe to topics. You can use the REST API, but that requires running a trusted process (i.e. on a server). See my answer here for details: How to subscribe to topics with web browser using Firebase Cloud Messaging
Note that in general there is no API to create/delete topics. Topics are automatically created when you subscribe to them or send a message to them.

How do we include the base services of alljoyn in universal web application

Iam trying to build a universal web application(producer) which uses my own interface and its build using Alljoyn Studio.
Now i want to add the notification service, to send the notification to the consumer which is a (android)application.
how do i implement the notification service/Control panel in UWP?
please provide me some suggestions.
For sending Notification to any android Device you can use two technology: 1) Push. 2) Pull.
For Push Technology you can use GCM(Google cloud messaging).
For Pull Technology you can make you application continuously keep on connecting to server and trying to fetch data if it is available from there.
Advantages of GCM:
1) Low battery comsumption. Since it will push the message to user device and it will push message when user gets connected to server.
For GCM you can use following Link for your reference:
http://developer.android.com/google/gcm/gs.html
https://developers.google.com/web/updates/2015/03/push-notifications-on-the-open-web?hl=en
http://www.techrepublic.com/blog/app-builder/implementing-googles-cloud-to-device-messaging/428
http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html
https://github.com/teleknEsis/TechRepublic-Samples/tree/master/C2DMSample

I want to integrate pubnub with zendesk

is it possible to integrate zendesk to pubnub? I want to create a pubnub channel for each zendesk ticket, and when I respond to a ticket with some message I want to send pubnub api request to record that message at pubnub server.
basically, I want an user interface to handle customer queries, and this chat between user and me I want to save it at pubnub servers. Any idea?
Zendesk Custom App Using PubNub
You don't need Zendesk's source code (and you can't get it anyway). The right thing to do is to create a Zendesk app by using their REST API.
Within that custom app, you use PubNub's REST API or a PubNub SDK that is compatible with whatever Zendesk offers as languages to use for add-ons (Ruby, Node, whatever they offer).
This is a cool use case (Zendesk, Desk Freshdesk, etc) with add-ons because you can do things within Zendesk that use PubNub to react to actions and trigger other things to happen or notify other agents in Zendesk.
You can also create a standalone app (web, server or mobile) that can subscribe to channels that the Zendesk is publishing to and you can go the other way around. The standalone app can publish on a channel that the Zendesk add-on is subscribed to and react to that message as required. The what to do is limitless.
And the standalone app could just be some other product/service/platform that allows you to create a custom app: Salesforce.com, Hipchat, Slack, Flowdock, Socialcast, Jive, Yammer, Workday, Zenefits, Zuora, whatever!
Here is a Zendesk custom app example to get you started.
Since you were referencing PHP, you might be creating a server side process that will interact with your Zendesk custom app so you will need PubNub PHP SDK. But you might be able to use PubNub JavaScript SDK within the Zendesk custom app.
Let us know if you need help taking the next step here after you get familiar with how to get started with a Zendesk app.

Categories

Resources