<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: iPhone OS 4 and Backgound Tasks or &#8220;Why We Don&#8217;t Have a Calendar API&#8221;</title>
	<atom:link href="http://www.theflyingjalapenolives.com/2010/01/iphone-os-4-and-backgound-tasks-or-why-we-dont-have-a-calendar-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theflyingjalapenolives.com/2010/01/iphone-os-4-and-backgound-tasks-or-why-we-dont-have-a-calendar-api/</link>
	<description>injuries sustained turning indy</description>
	<lastBuildDate>Wed, 01 Dec 2010 22:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ramkumar</title>
		<link>http://www.theflyingjalapenolives.com/2010/01/iphone-os-4-and-backgound-tasks-or-why-we-dont-have-a-calendar-api/comment-page-1/#comment-389</link>
		<dc:creator>Ramkumar</dc:creator>
		<pubDate>Fri, 27 Aug 2010 11:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.theflyingjalapenolives.com/?p=635#comment-389</guid>
		<description>IPHONE OS4 : can we run NSTimer in background....if not please tell me some alternative</description>
		<content:encoded><![CDATA[<p>IPHONE OS4 : can we run NSTimer in background&#8230;.if not please tell me some alternative</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimbob</title>
		<link>http://www.theflyingjalapenolives.com/2010/01/iphone-os-4-and-backgound-tasks-or-why-we-dont-have-a-calendar-api/comment-page-1/#comment-330</link>
		<dc:creator>Jimbob</dc:creator>
		<pubDate>Thu, 21 Jan 2010 15:16:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.theflyingjalapenolives.com/?p=635#comment-330</guid>
		<description>Apps running in the background don&#039;t cause battery problems if they&#039;re in suspended animation, just waiting to be woken by a timer.  They&#039;ll cause memory problems, though, since the iPhone doesn&#039;t have paging (yet).

Local push notifications would be very good for a bunch of apps that implement some sort of calendar function.  I can imagine both local and network push notifications to be used to wake up apps and let them execute code, but that would likely be abused with all kinds of polling anti-patterns, negating any improvements to battery life.

The solution depends on what you want to do.  If you want faster app switching, the best solution is to implement paging and suspend running apps to disk.  If you want background activity (such as location tracking or music scrobbling) apps should be allowed to spawn small background daemons with severely limited memory and no GUI.</description>
		<content:encoded><![CDATA[<p>Apps running in the background don&#8217;t cause battery problems if they&#8217;re in suspended animation, just waiting to be woken by a timer.  They&#8217;ll cause memory problems, though, since the iPhone doesn&#8217;t have paging (yet).</p>
<p>Local push notifications would be very good for a bunch of apps that implement some sort of calendar function.  I can imagine both local and network push notifications to be used to wake up apps and let them execute code, but that would likely be abused with all kinds of polling anti-patterns, negating any improvements to battery life.</p>
<p>The solution depends on what you want to do.  If you want faster app switching, the best solution is to implement paging and suspend running apps to disk.  If you want background activity (such as location tracking or music scrobbling) apps should be allowed to spawn small background daemons with severely limited memory and no GUI.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan de Vries</title>
		<link>http://www.theflyingjalapenolives.com/2010/01/iphone-os-4-and-backgound-tasks-or-why-we-dont-have-a-calendar-api/comment-page-1/#comment-327</link>
		<dc:creator>Nathan de Vries</dc:creator>
		<pubDate>Thu, 21 Jan 2010 05:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.theflyingjalapenolives.com/?p=635#comment-327</guid>
		<description>Overloading the user-facing calendar as a system-level scheduler seems unlikely given that launchd does exactly what you&#039;re trying to do. Something along the lines of SMJobBless() in the ServiceManagement framework is more likely to be exposed.</description>
		<content:encoded><![CDATA[<p>Overloading the user-facing calendar as a system-level scheduler seems unlikely given that launchd does exactly what you&#8217;re trying to do. Something along the lines of SMJobBless() in the ServiceManagement framework is more likely to be exposed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey</title>
		<link>http://www.theflyingjalapenolives.com/2010/01/iphone-os-4-and-backgound-tasks-or-why-we-dont-have-a-calendar-api/comment-page-1/#comment-324</link>
		<dc:creator>Corey</dc:creator>
		<pubDate>Wed, 20 Jan 2010 15:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.theflyingjalapenolives.com/?p=635#comment-324</guid>
		<description>@Jimbob My guess is probably off here, at least technology wise. I don&#039;t think that Apple would allow multiple apps to run as background processes. That would be a huge battery drain. Thats it woud be nice to have the Calendar App (or some other process) handle all &quot;local push notifications&quot;. Which is similar to how the Push Notifications work now, minus the ability to execute code.



@mare I actually doubt they would allow executing of arbitrary code as well. But if they wanted a simple solution that gives developers more flexibility without sacrificing (too much) battery life, they do have the pieces in place. There is some chatter about &quot;Calendar Syncing&quot;, I have to assume that the Calendar API is coming in the next major OS release.</description>
		<content:encoded><![CDATA[<p>@Jimbob My guess is probably off here, at least technology wise. I don&#8217;t think that Apple would allow multiple apps to run as background processes. That would be a huge battery drain. Thats it woud be nice to have the Calendar App (or some other process) handle all &#8220;local push notifications&#8221;. Which is similar to how the Push Notifications work now, minus the ability to execute code.</p>
<p>@mare I actually doubt they would allow executing of arbitrary code as well. But if they wanted a simple solution that gives developers more flexibility without sacrificing (too much) battery life, they do have the pieces in place. There is some chatter about &#8220;Calendar Syncing&#8221;, I have to assume that the Calendar API is coming in the next major OS release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mare</title>
		<link>http://www.theflyingjalapenolives.com/2010/01/iphone-os-4-and-backgound-tasks-or-why-we-dont-have-a-calendar-api/comment-page-1/#comment-322</link>
		<dc:creator>mare</dc:creator>
		<pubDate>Wed, 20 Jan 2010 14:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.theflyingjalapenolives.com/?p=635#comment-322</guid>
		<description>I agree this would be cool. But I&#039;m sure if Apple will enable such functionality it will be a bit more limited. I think they&#039;ll never allow you to send some code to be executed by another process. If your code crashes (because it is just wrong/malformed or because of a fringe case that didn&#039;t show up in debug/review) it&#039;ll crash an Apple process. Apple doesn&#039;t like that, even though that process will be re-spawned.

But they might very well at some point in the future (soon?!) provide a limited API where you can show a message at a certain time/date.</description>
		<content:encoded><![CDATA[<p>I agree this would be cool. But I&#8217;m sure if Apple will enable such functionality it will be a bit more limited. I think they&#8217;ll never allow you to send some code to be executed by another process. If your code crashes (because it is just wrong/malformed or because of a fringe case that didn&#8217;t show up in debug/review) it&#8217;ll crash an Apple process. Apple doesn&#8217;t like that, even though that process will be re-spawned.</p>
<p>But they might very well at some point in the future (soon?!) provide a limited API where you can show a message at a certain time/date.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimbob</title>
		<link>http://www.theflyingjalapenolives.com/2010/01/iphone-os-4-and-backgound-tasks-or-why-we-dont-have-a-calendar-api/comment-page-1/#comment-321</link>
		<dc:creator>Jimbob</dc:creator>
		<pubDate>Wed, 20 Jan 2010 10:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.theflyingjalapenolives.com/?p=635#comment-321</guid>
		<description>Two things: Blocks can&#039;t be passed to another address space and don&#039;t survive termination of the process.  If the process is kept alive, NSTimer can be used for this, anyway.  No reason to mess with exposed calendar entries.</description>
		<content:encoded><![CDATA[<p>Two things: Blocks can&#8217;t be passed to another address space and don&#8217;t survive termination of the process.  If the process is kept alive, NSTimer can be used for this, anyway.  No reason to mess with exposed calendar entries.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

