PDA

View Full Version : Push Notification for WebApps?




VBMichi
Nov 4, 2009, 04:56 AM
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



jnic
Nov 4, 2009, 06:10 AM
No, web apps do not have push notification functionality, sorry.

VBMichi
Nov 4, 2009, 06:32 AM
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?

sneha
Nov 4, 2009, 07:22 AM
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/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/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. :)

jnic
Nov 4, 2009, 07:42 AM
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/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/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. :)

That link refers to native apps, not web apps.

VBMichi
Nov 4, 2009, 08:20 AM
Hm.. is there another possibility to send the user an information that the web app content has been updated?
E-Mails are so stinky! :(

jnic
Nov 4, 2009, 08:51 AM
Write a native app instead? Otherwise, no.

VBMichi
Nov 4, 2009, 09:08 AM
Write a native app instead? Otherwise, no.

Sure I will do it!
...do u buy me a MAC? :D


***** happens... thanks anyway!

sneha
Nov 4, 2009, 11:55 PM
Sure I will do it!
...do u buy me a MAC? :D


***** happens... thanks anyway!


:D

skunkworker
Nov 5, 2009, 08:57 AM
what you need is called AJAX. Just update the view if there is something to update.

robbieduncan
Nov 5, 2009, 09:16 AM
what you need is called AJAX. Just update the view if there is something to update.

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.

dejo
Nov 5, 2009, 09:34 AM
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."