Send push notifications to IOS devices?

198 views
Skip to first unread message

bob

unread,
Jun 5, 2012, 10:01:00 AM6/5/12
to web...@googlegroups.com

I can send an email from within web2py but am wondering if anyone has attempted to send an IOS notification and if so any pointers would be very helpful.

What the Apple Push Notification service is:

 https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW9

thanks,
bobm

howesc

unread,
Jun 5, 2012, 7:06:12 PM6/5/12
to web...@googlegroups.com
i coworker wrote a stand-alone (not web2py) push server for a project - but that's cause we are running our web2py on GAE and you can't create persistent connects to the APNS.

i'm not sure how to keep the connection open between requests in a web2py instance.  i suspect you'd have to have a long running process that collects tasks from a queue to send notifications.  (though if you only send 1 push per hour it's probably ok to make a new connection each time).

good luck!

cfh

Jonathan Lundell

unread,
Jun 5, 2012, 7:11:49 PM6/5/12
to web...@googlegroups.com
On Jun 5, 2012, at 4:06 PM, howesc wrote:
i coworker wrote a stand-alone (not web2py) push server for a project - but that's cause we are running our web2py on GAE and you can't create persistent connects to the APNS.

i'm not sure how to keep the connection open between requests in a web2py instance.  i suspect you'd have to have a long running process that collects tasks from a queue to send notifications.  (though if you only send 1 push per hour it's probably ok to make a new connection each time).

It might be more convenient to use a third-party http-to-apns bridge. 

http://urbanairship.com has a basic plan with quite a bit of free volume. There others, I believe.

Christian Foster Howes

unread,
Jun 5, 2012, 7:21:08 PM6/5/12
to web...@googlegroups.com, Jonathan Lundell
as long as your list is small urban airship provides a decent service.
we were spending too much on them so we wrote our own. :)
Reply all
Reply to author
Forward
0 new messages