Re: an app that never quits
Re: an app that never quits
- Subject: Re: an app that never quits
- From: Erick Calder <email@hidden>
- Date: Tue, 22 Sep 2009 20:06:13 -0700
On Sep 22, 2009, at 4:27 PM, Jens Alfke wrote:
On Sep 22, 2009, at 3:44 PM, Erick Calder wrote:
one final recourse of a solution for me: is there such a thing as
cron on the iPhone whereby I could schedule a bit of processing to
occur every x seconds?
No. The current policy on the OS is that 3rd party code does not
execute unless the user is visibly in that app.
perhaps I an ask the question differently: if you wanted to be able to
respond to physical events (say the location of the phone, or time of
day, etc.) throughout the day in some unattended fashion, how would
you do it?
the thought comes about because maybe app visibility is not a problem
(if that is really the only requirement) vis-รก-vis user involvement
i.e. if I could install a trigger to bring up my app and it could just
close itself, maybe I could get away with a solution.
I understand the concern for battery power, but to legislate
daemons out of existence on account of that seems silly since
clearly one can still write apps that drain power needlessly and
users still get to select which apps they install. I mean, it's
not like there isn't a whole community out there to arbitrate
whether an app sucks power.
I don't entirely agree with the policy, but I don't think it's
'silly'. I think you're falling into the classic engineer's mistake
of considering any problem you haven't personally worked on to be
trivial. :)
you're right, of course. I'm sure much thought has gone into these
decisions. still I feel there is a compelling business case for
allowing processing in some automatic way i.e. background processing
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden