Push Notification from API Update? - push-notification

I am working with the soundcloud API and I want to send a user a push Notification on iOS whenever a targeted user uploads a new track. The app is developed with the Ionic Framework/ Cordova. I've looked into Amazon SNS and Parse but I can't find a way to watch the array. I can also do this through a RSS feed if that is easier.
Thanks

RSS is probably a pretty good way to detect new episodes/sounds posted. Hopefully, Soundcloud will implement PubSubHubbub, or you'll have to fetch/parse the feeds yourself.
Once you've identified the new entries, you can then sent the notifications.

Related

How to build in app notification service?

I'm learning backend and API development and trying to understand how to implement some features from scratch without using any paid third party service.
I want to understand this concept from design as well as implementation pov. Please share if you have any resources where I can learn how to code the below service.
How to build in app notification service like one of these from scratch ?
Notification when user likes or comments on a post (Instagram, Twitter)
Notification when someone views your profile (Linkedin)
Notication when a channel you are subscribed to uploads a video (Youtube)
These are different from push notifications like
Notification when someone sends you a message (All chat apps)
Live status via notification of your delivery (Food delivery apps)
Push notifications need not be stored permanently in any database but what happens with in app notifications? How to build such service which is scalable too.
One possible solution I could think of is this, for notification on post like
User A has made a post.
User B likes their post.
From likePost API emit an event which will notify User A that User B liked their post, listen for these real time events on client side. This can be done via sockets.
Do not store any notifications in database, just update the notifications in UI on that event emitted by likePost API or listen to real time changes in likes attribute of a User's Post table (is this possible?) and update UI.
In UI just show all such notifications by fetching from likes and comments table.
But I wonder how scalable is this approach.
I searched but couldn't find any good resources regarding this, so please if anyone could explain this or provide link to any blog or videos it will be helpful.
(P.s. I'm an undergrad student and don't have experience in system design and architectures, just started learning about these so just curious)
Thanks.
apps like Facebook, Instagram and linkedIn provides web hook of notifications. Webhooks allow you to receive real-time HTTP notifications for subscribed events. This functionality is only available for applications with an approved use case for webhooks. Webhhook received as a notification when user comment on your post or like your post, a web hook can be used to retrieve the information of post, comment and commentor etc.
I am attaching a reference of LinkedIn web-hook.
https://learn.microsoft.com/en-us/linkedin/shared/api-guide/webhook-validation

Youtube API - is there a way to get real-time information about youtube channels like new video being uploaded?

I am trying to build an application that does something every time a new video is uploaded to one or more channels.
My search lead me to the Youtube Data API V3. This is a push notification service that sends information every time a channel that you are subscribed to makes one of the following changes:
1. new video upload, 2. change in title, and 3. change in the video description.
I implemented this in python and I subscribed to receive updates on my channel. I was able to see that the subscription was successful using the pubshub/ websub tool . However, when changes were made to the videos on the channel I was subscribed to, I did not receive any push notifications.
some said that there's a huge delay ( it should not be because youtube claims it's near real-time), but then I saw the issue tracker page for this feature which basically says that the feature is broken.
So, I wanted to know if there is any other mechanism that I can try to do this? or is there someone who has tried this, and it's working?

Adding button to Slack Channel Message using Zapier Integration

Does anyone know of a way to add interactive buttons to a slack channel messages that are created using the Zapier slack channel message integration?
David here, from the Zapier Platform team. Sorry to be the bearer of bad news, but that's not currently possible. Because of the way button interactions are handled (centrally, to a single url for all buttons created with Zapier), we haven't come up with a good way for users to add buttons to their messages that would be in any way useful.
We track all feature requests that come in through tickets, so if you'd like to voice your support and get notified if/when this does get implemented, I'd suggest emailing in to contact#zapier.com.
There is a way to add buttons, but you need a premium account. It works by using the Zapier webhook function to send a POST request directly to the Slack API.
You can follow this tutorial to prepare everything in Slack
Then you need to add a custom request step in Zapier:
Screenshot from Zapier
Select method "POST" and paste the URL from your Slack application management tool
Build your Slack message using the Slack Block Kit Builder
Paste the JSON from the Block Kit Builder into the data field in Zapier
Replace text from JSON with dynamic fields from Zapier where necessary
Likely if you want to have buttons, you would want to use them to trigger further Zapier events. For this, follow these steps:
Create new Zap triggered by Webhooks by Zapier
Select "Catch requests"
Copy Request URL
Navigate to your Zapier application management tool and find your app's Interactive Components section
Paste Request URL from Zapier

Telegram track forwarding and storing

Short:
Is there any way to detect if a user stores or forwards a message (e.g. a video) in a channel?
Long:
I am completely new to programming for Telegram (although am a programmer). So have no idea about the tools that are provided by Telegram's API. I actually found nothing related to this issue browsing the web and Telegram documentations. So I thought someone might have an experience with it.
The scenario is that a client of mine is running a virtual teaching system on Telegram and her problem is that the added members to the channel are able to forward the teaching videos to other persons out of the channel, who have not actually paid the fee. Now is there any work around on earth for this problem?
You can't track user in Telegram, remember this IM is very care about privacy.
Try making it a Bot rather than a channel, you can create bots with a bot in telegram called botfather search it and consider making a bot instead of a channel
there isn't any way to track users to see if they forward or save the videos.
you can only do one of these:
create a bot using telegram api (not telegram bot api) and then send videos as a self destructing message to each user.
or put the videos on a website which only registered users can login and watch.

How to send new posts push notifications from Wordpress to PhoneGap (iOS and Android)

I need to send push notifications to all users of my app (built with PhoneGap).
These push notifications should notify the user that a new post has been posted on a wordpress site.
I used the phonegap's PushNotifications plugin.
Now I need to set up the server side scripts that would actually send the notification payload. I am asking this question because I can't figure out how to do this. Can you suggest some solutions? I did look around stackoverflow, but couldn't find a solution that would work for both iOS and Android, and would work with Wordpress.
Looking forward to any help.
There is a WordPress plugin that does exactly what you ask (disclaimer first: I'm one of the developers). It is called Push Notifications for WordPress.
The nice thing is that it integrates perfectly into WordPress and it does not use any third-party’s server (so there is no charge for delivery). It even supports custom post types, analytics, user groups, and so on. You can buy it here (one-time purchase).
This is a particularly broad question with a lot of required pieces but I will attempt to give you a high level implementation.
There are several steps to take to get your WordPress site relaying messages to your app's install base.
I would recommend using a provider like urban airship to handle the push notifications workflow. Urban Airship (and other alike) allows you to support Android, iOS, Amazon, Blackberry, etc. They do all of the maintenance required and also lets you register devices using alias (like email address or other identifiers decides the device tokens/ids)
If you decide to use Urban Airship as your VAN there is a server side plugin for WordPress called Blimply. You can use this plugin to communicate to Urban Airship's API to relay your push notifications to your devices within your Wordpress site.
There are many for WordPress now since ithaas a large plugin base and eco system like https://wordpress.org/plugins/push-notification-for-wp-by-pushassist/
I tried it and using it for many of my sites. Frankly, for smaller web blogs 3000 subscribers are more than enough. Serious sites should opt for paid plans of any push notification providers.
There are many push notifications WordPress plugins in the WP repository which you can use on your website to send push notifications.
Onesignal is the most popular free push notifications plugin for WordPress. With the easy integration of this plugin, you can set opt-in for your visitors to when and how they want send push notification from WordPress to Phone. Onesignal has a feature of schedule and automatic notifications to online and offline users it means your visitors can receive notifications even after they have left your website.
Source 5+ Best WordPress Push Notification Plugins By SmallEnvelop

Resources