RSS Push Notifications

Discussion in 'iOS Programming' started by RagingGoat, Feb 19, 2013.

  1. RagingGoat macrumors 6502

    Joined:
    Jun 21, 2010
    #1
    I'm trying to figure out how to implement push notifications so that the user is notified when there is a new article in a RSS feed. I can't find any info online. I'm find lots of stuff about push notifications in general but nothing pertaining to RSS. Can anyone here offer any insight?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    What leads you to believe that RSS makes things different for push notifications? Also, where do you think push notifications originate from?
     
  3. RagingGoat thread starter macrumors 6502

    Joined:
    Jun 21, 2010
    #3
    I was just thinking that there would be something different for doing notifications for the articles in the feed. I figured the process for setting it up was essentially the same but that there would be something special I would have to do since I'm using an RSS feed.
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Like what?
     
  5. RagingGoat thread starter macrumors 6502

    Joined:
    Jun 21, 2010
    #5
    Honestly, I'm not really sure. I was hoping to find something online where someone had done this with a particular feed. I was just assuming too much I guess.
     
  6. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    Divide-and-conquer: Break your concern down into smaller components. List them out. Which are the components you are comfortable with tackling on your own and which ones are you seeking more guidance for?
     
  7. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #7
    I believe what you're getting at is you don't want to set up a server for push notifications. Last I checked (~October 2012), you have to. How your server discovers when new RSS articles are available is up to you.
     
  8. RagingGoat thread starter macrumors 6502

    Joined:
    Jun 21, 2010
    #8
    I know I have to have a server set up. I'm just going to be using the server that the website with the RSS feed is hosted on. From what I can tell, the only thing I really have to set up on the server is the SSL cert. correct me if I'm wrong.
     
  9. ollyb macrumors member

    Joined:
    Jun 15, 2011
    #9
    Push notifications are tied to an app. Whoever makes the app and puts it in the App Store is responsible for providing push notifications.

    In this example, say you created MyRSSApp and distributed it on the App Store. As part of the process when the user sets up their feeds, the app would contact your server and tell it all the RSS feeds it was subscribed to. Your server would note those, check the feeds every so often, and then send a push notification to the correct iPhone when a new feed is available.

    Push notifications are just tiny amounts of data, just to alert you to the fact there is some kinds of update or information that an app might be interested in, so suggests opening the app to find out.

    If you're thinking that because you provide an RSS feed then you have to provide push notifications too, so that people subscribed to your feed can find out about new posts, this is incorrect. The creator of the app is in charge of t's push notifications.

    Hope that helps.
     
  10. dma550 macrumors 6502

    Joined:
    Sep 3, 2009
    Location:
    CT
  11. Kashsystems macrumors 6502

    Joined:
    Jul 23, 2012
    #11
    is that to everybody who uses your application or just for yourself?


    and there are free push notifications services out there as long as you fit within a certain threshold.
     
  12. RagingGoat thread starter macrumors 6502

    Joined:
    Jun 21, 2010
    #12
    I'm not wanting to use any of the services such as Urban Airship to handle my push notifications. I'm wanting to set up the server our web site is hosted on to look at the articles being added and when a new one is added with certain text in the title or a certain tag, send a notification to the devices about that article.
     
  13. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #13
    No, you'll also be responsible for composing the notification package that includes the device token and the notification payload. You'll then need to send that package to the APNS.

    You still haven't said what part of this whole process you are seeking guidance for.
     
  14. ollyb macrumors member

    Joined:
    Jun 15, 2011
    #14
    That's not how it works. I assume you're saying that you run a website, the website is updated with articles and you want to send push notifications to certain devices.

    Unless you have an app that you've written, it doesn't work like that. Push notifications are tied to an app, and you have to have written the app in order for you to push notifications to it.

    That's not to say something like growl wouldn't work in your situation, but it does look like you've got the wrong end of the stick with how push notifications work.
     
  15. dma550 macrumors 6502

    Joined:
    Sep 3, 2009
    Location:
    CT
    #15
    yeah, for my own use. I was thinking though that there were other services like it though, but yes, you pay.
     
  16. RagingGoat thread starter macrumors 6502

    Joined:
    Jun 21, 2010
    #16
    I have an app in the store already. Some of the info in the app comes from the RSS feeds associated with my website. I'm wanting the users of the app to be notified of new articles in one of the feeds.
     
  17. ollyb macrumors member

    Joined:
    Jun 15, 2011
    #17
    OK, that makse sense now. If you want to do it yourself, have a look at this tutorial which should set you off.

    Really the basic steps are as follows:

    Get the app to register for push notifications with Apple. Apple gives them a token.
    Get the app to send the token to you. Store it in a DB or something.
    when you have a new feed, send the notification to all tokens in your db.

    Also, do some periodic garbage collection and delete unused tokens by querying apple for the live ones.
     

Share This Page