Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Bladery

macrumors 6502
Original poster
Apr 12, 2015
416
113
hey guys,

I was wondering why the hell the developers have to optimize their apps for multitasking while at windows it's possible by default without any action by a developer!

It's the same for macOS.

Best regards
 
It really depends on the type of app as to what function takes place when you switch apps. Some are ok to suspend say a game. But some may need data or push in the back ground. It's a lot more complicated than it sounds as the biggest issue is the battery.

Look at Facebook. It had an issue where it didn't suspend with push properly so it was left running fully in the background. You had to go into the app switcher and close the app properly to resolve the issue. Had this been on a powered device it's not an issue but with a battery it's like streaming a movie over 3G and expecting all day battery life.
 
hey guys,

I was wondering why the hell the developers have to optimize their apps for multitasking while at windows it's possible by default without any action by a developer!

It's the same for macOS.

Best regards

It's a conscious design decision by Apple due to the limited resources on a Phone - they don't allow developers free rein to run their apps in the background because doing so could have an adverse affect on battery life.
 
It's to reduce issues caused by 'app holding CPU/GPU hostage in the background by being active'. This way Apple not only improves battery life and device performance, but also reduces support calls that are caused by rogue third party apps.
 
hey guys,

I was wondering why the hell the developers have to optimize their apps for multitasking while at windows it's possible by default without any action by a developer!

It's the same for macOS.

Best regards
write an app yourself, run it on a phone and see for yourself.
 
Because then you might as well use Android, where a rogue app can happily drain your battery in an hour while your phone sits on the table.

There's a reason for some of Apple's design decisions, even though I don't agree with all of them. For example I wish you could make an exception for certain apps to always run in the background, like SSH clients, so sockets can stay open.
 
I am not sure what the OP even means. Every program needs to be optimised for ‘multitasking’ as well as sudden termination. Computer resources are always finite and the user may decide to quit a program whenever they want. The difference is that iOS is more aggressive (and predictable) than other systems, but it should not determine how a developer designs their application. Efficiency, idling, freeing up unused resources and continuation of the user’ activity should be done on every platform. iOS developers get much of this behaviour for free, because it is baked into the relevant platform APIs anyway.
 
Last edited:
Because then you might as well use Android, where a rogue app can happily drain your battery in an hour while your phone sits on the table.

There's a reason for some of Apple's design decisions, even though I don't agree with all of them. For example I wish you could make an exception for certain apps to always run in the background, like SSH clients, so sockets can stay open.

While the intention might be there to avoid those situations, they somehow can still happen. I had to stop using waze because it wouldn't stop draining the battery, even when the app was closed from the multi-tasking switcher, and even when the phone was restarted. I had to fully delete the app to make it stop.
 
hey guys,

I was wondering why the hell the developers have to optimize their apps for multitasking while at windows it's possible by default without any action by a developer!

It's the same for macOS.

Best regards
Because mobile and desktop operating systems are different (like mobile and desktop hardware is different).
 
  • Like
Reactions: stooovie
Alright, thanks for the discussion.

But on an iMac, which gets permanent power, they have to optimize it too
 
Alright, thanks for the discussion.

But on an iMac, which gets permanent power, they have to optimize it too
They have to code an app to take advantage of things like split screen. That's not "optimizing", that's building a feature.
 
What exactly do you mean by "they have to optimize it too"?
I mean, that on desktop computers like iMac, the app SHOULDNT need optimization for multitasking because apparently they have unlimited power.
But multitasking doesn't work for some apps neither on iMacs.
 
I mean, that on desktop computers like iMac, the app SHOULDNT need optimization for multitasking because apparently they have unlimited power.
But multitasking doesn't work for some apps neither on iMacs.
I think you need to define terms here.

What do you mean by "multitasking" on MacOS?

I ask because you're using it in a way that leads me to believe you don't know what you are asking.
 
I think you need to define terms here.

What do you mean by "multitasking" on MacOS?

I ask because you're using it in a way that leads me to believe you don't know what you are asking.

Yeah I do but you're right, I used the wrong term. Doing multiple things at the same time ;-)

I meant split view not multitasking.
 
I mean, that on desktop computers like iMac, the app SHOULDNT need optimization for multitasking because apparently they have unlimited power.
But multitasking doesn't work for some apps neither on iMacs.
It sounds like the better question then is what do you mean by "multitasking" given that multiple apps can run just fine at the same time on macOS without anything special being added to the apps (which is basically what multitasking is).
[doublepost=1488991611][/doublepost]
Yeah I do but you're right, I used the wrong term. Doing multiple things at the same time ;-)

I meant split view not multitasking.
Ah, that's somewhat different as that's basically a different feature.
 
Yeah I do but you're right, I used the wrong term. Doing multiple things at the same time ;-)

I meant split view not multitasking.
There we go, yes an app has to specifically use the split view API in order to gain that functionality.
 
So when you asked your original question were you actually referencing split view like on an iPad in iOS?

If so its because apps need to be specifically design to run on certain aspect ratios and split screen is a relatively new thing. So everyone designed apps to run at specific screen ratios that fill the entire screen and designed the app entirely around that design. So unlike a window in OS X or Win the aspect ratio can't be changed very easily without designing (optimizing) the app for it.

Easy way to think about it, ever type in a basic text editor and resize the window and all the text moves around, goes down a line, wraps, cuts words in half, etc? That is what could happen to an app that isn't designed to be resized.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.