Live data from Hacker News

IPhone multitasking and background updating

marco.org

31–35 of 35 posts

Re: IPhone multitasking and background updating

#31
post #29

This is the issue with Apple's 'multi-tasking' model. Want to write an alarm clock replacement? Can't do it, you need a hook that doesn't really exist. This guy needs this hook. Someone else will need another hook. Does apple play os whack-a-mole (creating a lot of fragmentation)? Or are you just out of luck for a whole load of apps?

While I don't necessarily disagree with your point, an alarm clock may not be a good example. It looks like you could use scheduled local notifications for that.

Re: IPhone multitasking and background updating

#32
post #31
post #29

This is the issue with Apple's 'multi-tasking' model. Want to write an alarm clock replacement? Can't do it, you need a hook that doesn't really exist. This guy needs this hook. Someone else will need another hook. Does apple play os whack-a-mole (creating a lot of fragmentation)? Or are you just out of luck for a whole load of apps?

While I don't necessarily disagree with your point, an alarm clock may not be a good example. It looks like you could use scheduled local notifications for that.

Don't those work more or less like the network notifications? They don't bring the app to the foreground, they simply give the user the option of launching the application from an alert dialog....

Or am I wrong?

Re: IPhone multitasking and background updating

#34
post #32
post #31

Earlier quoted context omitted.

While I don't necessarily disagree with your point, an alarm clock may not be a good example. It looks like you could use scheduled local notifications for that.

Don't those work more or less like the network notifications? They don't bring the app to the foreground, they simply give the user the option of launching the application from an alert dialog.... Or am I wrong?

Yes, but for an alarm clock it'd work. You can set custom sounds, etc. You can also schedule up 64 of them and have them recur.

Re: IPhone multitasking and background updating

#35

Part Apple's making-software-simple philosophy is that APIs are written for specific cases - you write apps for a single resolution in iOS, you call system services instead of multitasking etc. The advantage is that making things simpler allows them to concentrate and spend more time making them better, while the disadvantage is that it leaves lot of developers unable to meet their users' needs. The alternative appro…

I like Marco's proposed solution, because polling is an easily abstracted or generalized operation. Pooling app polling would save a tremendous amount of setup and teardown time. I also like his idea of iOS only allowing polling when signal is above a threshold. Data requests while in marginal coverage chew battery at an extraordinary rate. Changing my Fetch frequency on 3 mail accounts from 15 mins to 60 mins more t…

That's really only a solution for his app. No way a chat app can work by polling randomly. Lots of things just need to keep a conection open.
Post reply on HN