I don't believe this is correct - is any background task ever truly "idle?"
Sure. Most modern OS's are set up so that when a task is waiting for, say an input event, it gets no cpu time.
Those are all extremely contrived examples. It doesn't mean you're wrong necessarily, just that those examples kinda stink.
They're all _real_ examples, not contrived.
Plus, every one of those examples would be very badly implemented as an always-running background task. Those are all notification-subscription use cases.
No, they're not. Notification can be a waste of bandwidth, radio power and servers in many cases.
And impossible to do in the case of GPS locations, unless you have a server and pay ATT to watch where you are all the time. And even that won't work if you're out of ATT range.
And this would never happen, obviously, for privacy reasons. Letting an app read all my text messages? No chance whatsoever.
Again, these are apps that have been available for almost a decade on other phones.
For example, there are background apps that watch specially tagged text messages for a secret code you've set up. When it sees one, it sends back the location of the device so you can track it down if lost. Or lock it or wipe it. Or even retrieve your contacts remotely if you forgot your phone. No need to pay someone $99 a year for something so simple.
Or prevent bothering you with alerts unless certain friends text you, so others can't see the popups. Just one of many such examples.
Generally, it seems like at least a few people think that having continuously running applications that constantly poll for new events to respond to is a good idea. Those people, respectfully, are mistaken.
Those people sound like they've used other phones and know what they're missing with the iPhone.
Y would have to be a thing that people actually care about — change the screen to match the weather? really?
Yes, really.
Even Apple has been applying for patents to change your homescreen and visible menu options depending upon your location.
Are you saying that Apple doesn't know what people care about? Are you saying that Apple has dumb ideas?
Just because Apple doesn't allow
third party apps to do these things that other phones allow, doesn't mean they're bad ideas.
Every time somebody says that it makes me roll my eyes. It's a phone. If you need to run fifty apps at once, then you're doing something very wrong.
You missed the point, which is that memory to hold idle tasks is not an issue in most cases.
How is the OS supposed to magically know how to serialize and restore an app's running state? Is it supposed to just dump the entire virtual memory space of the app to flash memory? What happens when there's not sufficient flash memory for that? Because, y'know, there won't be.
If I understand your question, in modern phone OS's apps get an event that tells them they need to save state and shut down.