Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

push notification for RSS Feed?

Tags:

android

I want to send push notification to my user,when will i update some information in my RSS Feed,Now i am using third party tool like urbanairship,but did not support RSS Feed,Have any third party tool for notification,please give some idea about that.

Thanks, John

like image 604
JohnNick Avatar asked Jan 05 '11 08:01

JohnNick


2 Answers

Do you really need real-time notification from a push service? How many update will your RSS push? Have you already considered polling your feed? You can do that in minute with the BuzzBox SDK: it also has an RSS parser integrated to do exactly what you need.

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

Use like 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 an hour (according to the cron string "0 9-20 * * 1,2,3,4,5") and it will create a notification in the status bar if anything new is found.

The Demo App is a good example of it: http://hub.buzzbox.com/android-sdk/demoapp

like image 113
robsf Avatar answered Sep 20 '22 13:09

robsf


You can use a number of different services the following are my recommendation.

You can use Google C2DM (Could-to-device-messaging) to alert your users when there's an update to your feed.

For that you need your own server (there's no way around that). In the server you should poll your RSS feed and notify users when something changes.

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

However, they do polling and notify you when a feed changes. The largest time between the poll is 15 minutes.

like image 36
Gonzo Avatar answered Sep 18 '22 13:09

Gonzo