How Amazon SNS works with NodeJS and Xamarin? - c#

I have Xamarin.Forms as my client side and Node as my Server side. Currently I am implementing a push notification feature. I found Amazon providing it through Amazon SNS. I have gone through the documentation. It states that we have to publish all our message to a topic and those who subscribe it, can get the push notification but my requirement is different. I have a role based app. If I send a request to another person, it should trigger a push notification. Basically I need to target specific device that use my app and not the topic publish subscribe things.
Is this possible with Amazon SNS or should I choose some other service which fulfill my requirement as I stated above? Please Help me out. Thanks

Yes. You can notify individual devices either through console or by API. Here are some information. Via console. You can also specify a TargetArn with the API call, which can be an endpoint URL.

Related

ASP.NET Core web notification implementation

For the intranet company, I want to send to user web notification. This notification could be general (new feature in the intranet) or for a specific user (a task is ready to pick up or an import is completed).
I started to use SignalR but the user receives the notification only if the intranet is open. So, I'm looking around to implement a different web notification and I saw some posts:
https://blog.elmah.io/how-to-send-push-notifications-to-a-browser-in-asp-net-core/
https://labs.bawi.io/web-push-notifications-through-vapid-method-7d4d6927a006
https://www.tpeczek.com/2017/12/push-notifications-and-aspnet-core-part.html
https://webpushdemo.azurewebsites.net/
I can't find an end-to-end implementation in ASP.NET Core. On GitHub I found a few projects but again when I close the browser, I can't receive the notification.
I can't find any Microsoft documentation for that. Can you point me in the right direction please?
Update
The idea is:
Setting up a minimal PWA
Subscribe to Push Notifications
Send Push Notifications
Receive Push Notifications
Show Push Notifications

How to push Google Cloud Platform Pub/Sub message to C# desktop application

I am trying to create C# desktop application that can receive Google Cloud Platform Pub/Sub message. I can't get it to work with Push approach(https://cloud.google.com/pubsub/docs/subscriber#push_pull). What I understand from documentation - when message is published Pub/Sub pushes HTTP request to the subscriber to an endpoint. Then endpoint sends back HTTP success status code.
This is how I create my Subscriber:
TopicName topicName = new TopicName("test-project-123", "myTopicName");
SubscriberServiceApiClient subscriberService = await SubscriberServiceApiClient.CreateAsync();
SubscriptionName subscriptionName = new SubscriptionName("test-project-123", "mySubscriberName");
subscriberService.CreateSubscription(subscriptionName, topicName, pushConfig: null, ackDeadlineSeconds: 60);
Here, I assume, pushConfig is where I would specify endpoint to which Pub/Sub should send request to which my program in return should send success status code. What I don't understand is how my desktop application will know that request is pushed to this endpoint and how exactly does it have to respond to it? I believe the answer should be simple, but web development is a totally new thing for me so this solution is something I find very difficult to figure out. Any ideas or code samples would be highly appreciated
To use Push, you would need to set up a service that hosts a URL. It's up to you to figure out how to connect your service to your desktop application. I think the easiest way to set up a service to accept Cloud Pub/Sub Pushes is to use Cloud Run, a GCP service for hosting services: https://cloud.google.com/run/docs/tutorials/pubsub
Another option is to use Cloud Functions to set up a Pub/Sub trigger: https://cloud.google.com/functions/docs/calling/pubsub
or Firebase Functions:
https://firebase.google.com/docs/functions/pubsub-events
In general, Cloud Pub/Sub might not be the right tool for delivering notifications to your desktop application. For that, you might want to consider Firebase Cloud Messaging: https://firebase.google.com/docs/cloud-messaging/
It is possible for you to use FCM end-to-end, or you could bridge messages from Cloud Pub/Sub into FCM.

Detect a video upload YouTube API

I'm developing a bot for discord and I would like to ask you how could I detect when I upload a video to Youtube to send a message to all users on my discord's server. I know some servers who use this function. Thank you!
You can use subscribe to YouTube's Data API push notification via PubSubHubbub.
The approach can be summarised as:
Set up a callback server that can handle incoming Atom feed notifications.
Use the Google hub to subscribe to receive push notifications.
Process notifications sent to your callback server.
Detailed instructions can be found here.
It is worth noting that the PubSubHubbub sample I read was using Node.

Notification Hubs Message Status

I have some deployed mobile apps that use a backend Web API (not Mobile Service). I added push notifications support using another vendor. Recently...I wanted to check up on Azure Notification Hubs to see if I can also use them for some specific scenario. I am finding out that the documentation has not been updated for a while ...is it me? Is the notification hub the preferred way to send push notifications in Azure?
I am specifically interested in server-side registration. The doc has a special section about that which is nice but it looks quite complicated. Anyway, is there a way to retrieve the status of a message after I send it? For example, if I send a message to target a specific tag, I would like to know how many devices for each platform (i.e. Android, iOS and Windows) it was delivered to and whether the message is still in enqueue, etc.
I just responded to you at https://social.msdn.microsoft.com/Forums/en-US/d420fcc2-7e96-46cc-9dfc-71ea18086b56/notification-hubs-message-status?forum=notificationhubs. Thanks!

Setting up push notification for windows phone. MPNS and its role

I have read this:
http://msdn.microsoft.com/library/windows/apps/ff402558(v=vs.105).aspx
This is the API documentation of the push notification service I want to get pushes from: https://developers.podio.com/examples/push
How do I go about implementing push notifications with Podio if they do not support MPNS. It looks like (from the msdn documentation) that they will have to send the notifications to Microsoft Push Notification Service at stage 5.
Is there a way around this stage? Can I communicate directly with Podios PNS somehow? Why should Podio who are protected by Citrix have to send sensitive data through Microsoft's service when they have a service workflow of their own? I'm struggling to understand this!
Related documentation:
http://forums.wpcentral.com/windows-phone-8-guides-how-tos/234780-how-push-notifications-work-why-sometimes-they-might-not.html
EDIT
If I set up a service of my own that Microsoft's push notification service interacts with... I can then make interactions on behalf of Podio... Is this normal practice?... I'm assuming that the lag of double dosing requests is going to be pretty useless for something like a messaging application.
I noticed that Android seems to also now have a middle man service... But I assume that having the choice means large companies who do not want to make a handshake with a third party company do not have to?
http://developer.android.com/google/gcm/gcm.html

Categories