Is it possible to make a live news app?

Hello. I was wondering does Corona support making an app that there is a section were you can update news more like newsfeed. So basically have live news changing instead of updating the app constant. Does it support if it does can anyone tell me how that works please.

Thanks :slight_smile:

S [import]uid: 17058 topic_id: 27817 reply_id: 327817[/import]

Pretty sure it would be possible to bring an RSS feed in via a webView. [import]uid: 33275 topic_id: 27817 reply_id: 112659[/import]

A live newsfeed is possible using RSS feeds from a number of sources. You would need to add an XML parser to your code and display the information from the feed in a scrollView or webView. Search the Corona Code Exchange for RSS/XML and the Corona Blog for Jonathan Beebe’s great article on XML parsers. [import]uid: 7559 topic_id: 27817 reply_id: 112664[/import]

I have an RSS parser in the Code Exchange already that several people have made great use out of.
[import]uid: 19626 topic_id: 27817 reply_id: 112685[/import]

@robmiracle can you please give me the link for the app I would love to see your work [import]uid: 17058 topic_id: 27817 reply_id: 112686[/import]

http://itunes.apple.com/us/app/the-animals-can-kill-you/id455118802?mt=8

Oh and here is the link to the community code.

http://developer.anscamobile.com/code/rss-parser-take-two

Note, that the RSS and Atom files should work fine, but the support code on how to use it is from an older version of the widget library and I’ve not updated this to work with a modern Corona SDK build (including the latest Stable released this week) [import]uid: 19626 topic_id: 27817 reply_id: 112693[/import]

@robmiracle I downloaded the file. What happens is now I get a black screen, but I get printed messages so in the terminal. It works but the problem the simulator has a black screen, how can I show it in the simulator. Or do I got to build? [import]uid: 17058 topic_id: 27817 reply_id: 112699[/import]

I actually expect you to get a black screen. There is **NO** code in main.lua that will display anything. It is setup to only print to the console…

“Well isn’t that useless?” you might be asking, but think about it from my perspective. I don’t know how you intend to use it. It’s my job to provide you the parser and a sample on how to use it. If you look into the processRSSFeed or processAtomFeed functions you will see that they return you a table of stories. Do with them what you like.

I should point out that the main.lua is using the processAtomFeed the way I have that written (see line #50). If you want to process an RSS2.0 feed, change processAtomFeed to processRSSFeed.

How you display the stuff is up to you.

Rob
[import]uid: 19626 topic_id: 27817 reply_id: 112707[/import]