开发者

push notification for RSS Feed?

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 no开发者_StackOverflowt support RSS Feed,Have any third party tool for notification,please give some idea about that.

Thanks, John


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜