Push notification for RSS feed?

I want to send a push notification to my user when I update some information in my RSS feed, now I use a third-party tool, such as urbanairship, but I do not support the RSS feed, there is a third-party notification tool, please give some idea about this.

Thanks, John

+8
android
source share
2 answers

Do you really need a real-time notification from the push service? How much will update your RSS post? Have you considered polling your feed? You can do this in a minute using the BuzzBox SDK: it also has integrated RSS syntax to do exactly what you need.

http://hub.buzzbox.com/android-sdk/

Use this:

RssReaderTask.setRssUrl(this, "http://yourserver.com/feed.rss"); SchedulerManager.getInstance().saveTask(this, "0 9-20 * * 1,2,3,4,5", RssReaderTask.class); SchedulerManager.getInstance().restart(this, RssReaderTask.class); 

It will check your RSS once per hour (according to the cron line "0 9-20 * * 1,2,3,4,5"), and it will create a notification in the status bar if something new is found.

The demo application is a good example: http://hub.buzzbox.com/android-sdk/demoapp

0
source share

You can use several different services, the following recommendations.

You can use Google C2DM (Could-to-device-messaging) to alert your users when there is an update for your channel.

To do this, you need your own server (there is no way around this). On the server, you should poll your RSS feed and notify users when something changes.

The only survey alternative I know of is Superfeedr . They alert your server using XMPP or PubSubHubBub .

However, they do a survey and tell you when the channel changes. The longest time between polls is 15 minutes.

0
source share

Source: https://habr.com/ru/post/650702/


All Articles