- How to make new stuff from your piles of obsolete tech
- Why your computer sucks
- 10 recession-proof IT skills
- Juniper execs share network vision
- 9-year-old plots his fifth Microsoft certification
Apple’s missing link for the iPhone has been a two-way connection with the cloud. With its new push notification service, Apple enables greater interactivity for the handset’s applications and users.
But at the same time, the Apple Push Notification Service (APNS) highlights the way Apple’s ban on background processing and multitasking still hamstrings the iPhone’s two-way interaction with the Web.
Can you manage an iPhone like a BlackBerry?
APNS lets an iPhone application register to receive remote updates. Those updates might be a new tweet on Twitter, an item added to newsfeed, or a challenge from an online game player. APNS sends the update directly to the registered iPhone. The update can trigger a sound, show a text message, or prepare an iPhone app to launch in response.
It’s already been quickly implemented by iPhone game vendor Tapulous, with the help of start-up Urban Airship, which is kind of an APNS middleman.
The new API is part of Apple’s version 3.0 of the iPhone operating system released earlier this summer.
But push comes at a cost -- not for users but developers.
The service requires creating and maintaining a server, or group of servers, that is constantly linked with the Apple server farm to process the message requests. It’s a daunting requirement for many small software developers, who also may lack experience in handling socket connection pools. And the new service has revived rather than muted some complaints that Apple still won’t permit apps on the iPhone to run at the same time in the background and make periodic checks for information updates.
Apple’s argument is that background processing and multitasking can consume CPU cycles and memory resources and exhaust the battery. With a push system, iPhone apps in effect are asleep, and the user wakes each one up separately to respond to a relevant notification.
Early impressions
Back in April, bloggers such as Mobile Orchard’s Ryan Daigle (formerly a principal with Y Factorial, which merged with iPhone and web application developer DigitalToniq) noted the complexities of APNS.
In a blog post, Daigle notes that APNS relies on socket connections to deliver messages to the Apple gateway, which is set up similarly to an SMS gateway: a raw binary interface via long-lived or persistent socket connections. By themselves, sockets are “not that intimidating,” he writes, but it does add complexity for developers who don’t have experience in maintaining a server-based pool of connections. (Enterprise developers, with experience in server-side persistent or long-running applications in Java or similar languages, will find this much less of a challenge, he says.)
Developers will need to get the right tools and “think about this before designing their iPhone apps [with APNS],” he added.
All those issues remain, Daigle says today. “As a push notification implementation, APNS is robust, and architected to be highly performant,” he says. “However, in its usage, it is flawed in that many apps are using push as a workaround to missing functionality on the iPhone.”
Comments (3)
Pricing available for Urban AirshipBy kveton on August 20, 2009, 10:52 amHi John, Great write-up and thanks so much. We actually have pricing available for both push notifications and In App purchase now: http://urbanairship.com/plans-and-pricing/ Thanks...
Reply | Read entire comment
Other Players in the SpaceBy TimCourtney on August 21, 2009, 10:07 amJohn, thanks for the insightful writeup on Push notifications, especially about how using third-party services reduces cost and developer effort needed. It's also...
Reply | Read entire comment
APNS is awesomeBy Anonymous on August 21, 2009, 9:31 pmSome of my apps have been updated to use APNS and it works really well. I wouldn't trade it for background processing because the iPhone is always, always responsive....
Reply | Read entire comment
View all comments