iPhone SDK does not allow you to run in the background

by Volker Weber

Aspelagh notes that a third-party application can't write data to another application, which is known as "sand-boxing." This is a security-influenced rule, presumably. The downer is that "the possibility of cool mashups is basically eliminated," notes Wired's Scott Gilbertson.

The SDK item drawing the most attention Friday, however, is that third-party applications will not be allowed to run in the background. TechCrunch's Mike Arrington wrote, "Instant-messaging applications (we saw a demo of an AIM version at the event today), can't run in the background and collect messages while you are doing something else. Leave the application to take a phone call, and it shows you offline."

If you can't run in the background, you also can't build a Sametime or Traveler client.

More >

Comments

Yikes. The sand-boxing I can understand, but this other move is crippling, surely?

Well, I understand why they would do that. A busy application could wear down the battery pretty quickly if it continues running in the background. The sandboxing also leaves me scratching my head. I hope they have apis to talk to the contacts, calendar and message store.

imho mail.app is running in the background already, right?

It is. So is phone. But they are not written with the SDK.

I hope somebody tells this to Sun ;-)

Business opportunity???
Moving overseas with some programmers and develop iPhone Apps and Games.
Hand them out for free and selling some major apps to a million of users.

Who comes along? :o)

It is. So is phone. But they are not written with the SDK.

And I wouldn't call them 3rd party apps either ;)

Volker, I think the point where no background apps means no 3rd party push email or always on IM clients ( ie SameTime ) is probably the most important point of this post and again goes to show how IBM missed the boat by not getting enterprise email built directly into the iPhone firmware so that it is not calles as 3rd party.

Volker, re: APIs: there are APIs that connect to mail, itunes, calender, maps, adressbook etc. No worries on that front.

Yeah, that sounds pretty consistent with this conversation from Brad Fitzpatrick's LJ (late of LiveJournal, currently at Google).

Walled Garden of Eden, isn't it?

Roland Leißl, 2008-03-08 21:25

jcf, is that write access as well as read access?

How much good can write access do for you if you can't be writing from a background process?

Volker, Adressbuch und Kalender sind in beide Richtungen benutzbar. Von SMS und Mail ist nix zu sehen... Aber insgesamt ist schon ein Haufen des gewohnten Stacks dabei, und der Cocoa-Entwickler fühlt sich sofort heimisch. Wenn man mal davon absieht, dass man sich sein Interface (noch) schreiben muss, statt es zu malen...
Was mich - neben dem SingleTask-Approach - momentan mehr stört: Der Simulator ist - im Vergleich zu J2ME und BlackBerry - Schrott. Man kann zum Besispiel keine plötzlichen Anrufe oder Verlust der Netzwerkabdeckung simulieren. Ein im Simulator laufendes Programm "sieht" per NSFileManager nix vom iPhone, sondern das Filesystem des gastgebenden Macs! Nach dem Build-Prozess mit dem SDK hat man ein... i386-Binary! Schluck! Wenigstens eine Toolchain zum Erstellen von testbarem Code auf dem Endgerät hätte ich schon gern gehabt...

Auf der Habenseite: Der Simulator ist ein erstklassiges Werkzeug, um webgestützte iPhone-Apps zu testen! :-)

Martin

@Volker:
On first look I wasn't able to find any API's to work with mail or calendar (I might be wrong, of course). Although, they have API with read-write access to Address Book.

Ooops, zu schnell. Der Kalender ist NICHT beschreibbar... :-/

Dana Gardner thinks the answer is to run inside the JVM, using OSGi. See here. I have no idea if the OSGi work (Lotus Expeditor) for Notes has some play here, something to look into.

That reads like analyst talk. If you can't run in the background, and if you can't write to the native data stores, adding another layer of software will not make you look good. One could of course develop a huge software stack that does its own thing, does not integrate with anything else, and loads every time the user clicks your icon.

Sooner or later we will see a JVM. Jazelle will be free! :-)
I also predict the first outbreak from the sandbox in September '08. This will happen by reverse engineering of "SuperMonkeyBall.app". :-)

I really don't want to have to load up a JVM to be able to run a mini-Notes client. Can we do this properly - Formally supported Notes Mail access from Mail.app is needed with full backgrounding support just like the Exchange support offered.

It seems to me that adding software layers is IBMs actual answer to everything - like a physicist adds dimensions to models to explain the whole world. In Germany such software is called "eierlegende Wollmilchsau". :)

Steffen Pelz, 2008-03-12 12:30

Post a comment











Shall I remember this for you?




Use your full name and a working email address. Unless you want your comment to be removed. No kidding.



Recent comments

Tobias Lange on Remember, it's always the cable at 13:16
Volker Weber on Remember, it's always the cable at 12:21
Ian White on Remember, it's always the cable at 11:56
Andy Brunner on Remember, it's always the cable at 11:37
Ben Rose on Remember, it's always the cable at 11:33
Ben Poole on It has only been less than two hours at 09:44
Frank L. Quednau on It has only been less than two hours at 09:29
Martin Hiegl on It has only been less than two hours at 08:27
Stephan H. Wissel on Notes.ini parameter RunFaster=1 is finally here at 05:24
Volker Weber on It has only been less than two hours at 01:33
Thomas "Duffbert" Duff on It has only been less than two hours at 01:26
Chris Linfoot on Planet Lotus not picking up Christopher's feed at 21:56
Yancy Lent on Planet Lotus not picking up Christopher's feed at 19:48
Bruce Elgort on Robin Bloor: Why Google Chrome Will Dominate at 18:51
Mac Guidera on Planet Lotus not picking up Christopher's feed at 16:04
Kevan Emmott on 824 Chrome users so far today at 15:56
Chris Linfoot on Planet Lotus not picking up Christopher's feed at 14:54
Lars Berntrop-Bos on Planet Lotus not picking up Christopher's feed at 13:12
Andreas Braukmann on 824 Chrome users so far today at 11:33
Nick Daisley on Robin Bloor: Why Google Chrome Will Dominate at 10:14
Chris Linfoot on Planet Lotus not picking up Christopher's feed at 09:42
Alper Iseri on 824 Chrome users so far today at 09:38
Jean Pierre Wenzel on 824 Chrome users so far today at 08:37
Jan-Piet Mens on Robin Bloor: Why Google Chrome Will Dominate at 08:26
Benjamin Stein on Synchronizing iPhone with ... Lotus Notes at 07:18

Ceci n'est pas un blog

vowe.net is a personal website published by Volker Weber a.k.a. vowe. I am an author, consultant and systems architect based in Darmstadt, Germany.

rss Click here to subscribe

Hello

About me
Contact
Publications
Certificates
Frequently asked questions

Twitter Updates

More >

Poll

Can you bring a camera phone to work?

Getting poll results. Please wait...

Local time is 15:01

visitors.gif
196 visitors online

News

Other sources of news, imported into my own format to make them more accessible:

Heise Online
Schlagzeilen
Weather

Archives

As most of my articles roll off the front page rather quickly, I am making an archive of previous posts available here. You can also use the handy search box at the top of the page if you are looking for something particular.

Last 30 days
More archives

Got the T-shirt?

Got the T-shirt?
Are you buying from the US?

Systems Architecture

This site runs on an Apache web server on top of the Linux operating system. The content is managed with MovableType which is implemented in Perl. Last but not least the HTML code your browser sees is put together with PHP.

© 1992-2008 Volker Weber.
All Rights Reserved.

Impressum