Badge icon on button when new content present

Discussion in 'iOS Programming' started by newtoiphonesdk, Dec 14, 2011.

  1. newtoiphonesdk macrumors 6502a

    Jul 30, 2010
    I hope I can explain this properly. In my app, I have a view in it with a webview, and the webview changes daily, based off what day of the week it is. What I would like to do is to add a badge icon to the button that presents the view. Since the webview will change each day, I would like the badge icon to appear when a new webpage has appeared, and once they have viewed it the badge icon disappears. Then, if they restart the app again the same day, I don't need the badge icon to come back, just that first time. What would be the correct method on the badge icon for this type of behavior to get me started? Is there a way to detect if a certain view has been opened within a certain period of time?
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    You app can't run in the background to check the page. So push notifications are your only option. You need a server that checks the page and sends push notifications when it updates.

Share This Page