0

I am writing a program to pull some JSON data off of a 3rd party website. What I would like to happen is run my method to pull the data, and cycle through the data finding seeing if there is a newer date then the last time the system pulled it. If there is, I want to send out a local notification that something was "Found". I expect if there is new data to be there every 5 min, but I would like the users to schedule a time interval from 5 min to once a day. There is more I would like to check on but this is where I want to start.

I don't know where to begin, any help will be appreciated. I am building this project in SWIFT on Xcode 6.4

JpeckStL
  • 23
  • 4

1 Answers1

0

You should look into the following

  1. For url fetching (For you json) - NSURLSession tutorial

  2. Look at ETAG, Last-Modified headers to check if JSON file is modified at server. Refer this

  3. NSTimer for for your timing requirements. Refer this

  4. For notifications: Use NSNotification. Refer this

Community
  • 1
  • 1
Shripada
  • 6,296
  • 1
  • 30
  • 30