Skip to content
Realtime news feed application for iOS using a New York Times API - Server-sent Events for iOS
Branch: master
Clone or download
Latest commit 6345cea Sep 14, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
newsFeed.xcodeproj
newsFeed First version for public release Sep 11, 2015
newsFeedTests
.gitignore Initial commit Sep 11, 2015
LICENSE
README.md

README.md

newsFeed-NYT-iOS

Server-Sent Events for iOS Realtime news feed application for iOS using a New York Times API

This tutorial demonstrates how to implement Servent-Sent Event (aka SSE) for iOS using Streamdata.io Please refer to the associated blogpost at http://streamdata.io/blog/server-sent-events-for-ios/

Follow these steps to make it work:

1- Create a free NYT developer account at http://developer.nytimes.com/ to get a NYT API Key.

2- Create a free account on Streamdata.io to get your Public and Private Keys at https://portal.streamdata.io/#/register.

3- Launch Xcode on your Mac and open the newsFeed project.

4- Edit FeedViewController.m and replace [YOUR_NYT_API_KEY] and [YOUR_STREAMDATA_APP_TOKEN] with the appropriate keys.

5- Save and run in the iOS Simulator or on your iPhone.

You are done! The app should build and run, and the initial news feed tableView displayed on your device.

As soon as a news feed update is received, UI gets animated and the news feed TableView is modified. The TableView can be ordered by latest news or by section. You can visualize time since last update as well as the JSON data coming from Streamdata.io. When selecting a specific cell, the details page for the selected news is displayed. From this page, you can open the news from the NYT website in a WebView.

You can’t perform that action at this time.