Push Notification for WebApps?

Discussion in 'iOS Programming' started by VBMichi, Nov 4, 2009.

  1. macrumors newbie

    Joined:
    Nov 4, 2009
    #1
    Hi,

    I've developed a web app for my iPhone 3GS OS 3.1.2
    Is it possible to send push notifications to the iPhone? Or smth similar?
    Maybe change the homescreen icon or smth else?

    Thanks for ur help!

    Regards,
    Michael
     
  2. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    No, web apps do not have push notification functionality, sorry.
     
  3. thread starter macrumors newbie

    Joined:
    Nov 4, 2009
    #3
    Hi jnic,

    thanks for ur answer.
    Maybe it is possible to change the homescreen icon if it allready set by:

    <head>
    <link rel="apple-touch-icon" href="/whatever.jpg"/>
    </head>

    So if I get news, maybe I can change it in whatever-news.jpg?
    Hmm... any ideas?
     
  4. macrumors newbie

    Joined:
    May 24, 2009
    Location:
    India
    #4
    Hi VBMichi,

    Push notifications—also known as remote notifications—let users learn when applications on their iPhone and iPod touch devices have data waiting for them on their servers. They use a persistent IP connection. When a device receives a notification for an application and that application isn’t running, it notifies the user through an alert message, a distinctive sound, or a number badging the application (or some combination of these)..

    reference link : http://developer.apple.com/iphone/l...otificationsPG/Introduction/Introduction.html

    We can use the push notification to notify him. Not actually downloading the data and using that image/information in the application. :)
     
  5. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #5
    That link refers to native apps, not web apps.
     
  6. thread starter macrumors newbie

    Joined:
    Nov 4, 2009
    #6
    Hm.. is there another possibility to send the user an information that the web app content has been updated?
    E-Mails are so stinky! :(
     
  7. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
  8. thread starter macrumors newbie

    Joined:
    Nov 4, 2009
    #8
    Sure I will do it!
    ...do u buy me a MAC? :D


    ***** happens... thanks anyway!
     
  9. macrumors newbie

    Joined:
    May 24, 2009
    Location:
    India
    #9

    :D
     
  10. macrumors regular

    Joined:
    Sep 9, 2007
    #10
    what you need is called AJAX. Just update the view if there is something to update.
     
  11. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #11
    I don't see how that will help at all: Push notifications are there to enable the server to notify the phone user that there is new content when the app is not running. AJAX cannot help you if the view/app is not running at the time.
     
  12. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #12
    Just seems the OP wants all the advantages of a native app without having to expend all the effort to make a native app. Native apps can have push notifications, webclip apps can't. "Make your choice. Live or die."
     

Share This Page