Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multitasking on iOS4: Does it work only on iPhones?

I have iOS 4.0 on an iPod Touch 2nd Gen.

There's absolutely no multitasking working. Nothing goes to the background, and double-tapping the Home Button results in just nothing. I wanted to test my app against this new feature, but it appears that it doesn't work for iPod Touch devices?

Does that only work on the iPhone? Or is there some minor upgrade like 4.0.0.1 that enabled multitasking? Or must I enable that somewhere, manually?

Really strange. I do the exact same thing like the Apple guys do in the demo videos.

like image 715
dontWatchMyProfile Avatar asked Jul 13 '10 11:07

dontWatchMyProfile


3 Answers

The documentation says:

The ability to run background tasks is not supported on all iPhone OS–based devices. If a device is not running iPhone OS 4 and later, or if the hardware is not capable of running applications in the background, the system reverts to the previously defined behavior for handling applications.

You can test if it's supported with the following code:

UIDevice * device        = [ UIDevice currentDevice ];
BOOL backgroundSupported = NO;
if( [ device respondsToSelector: @selector( isMultitaskingSupported ) ] )
{
    backgroundSupported = device.multitaskingSupported;
}
like image 151
Macmade Avatar answered Oct 13 '22 12:10

Macmade


Multitasking only works on the 3GS iPhones and up. You are out of luck with your 2nd Gen iPod Touch (its like the iPhone 3G, sort of). Sorry.

EDIT: You would need a 3rd Gen iPod Touch, just to be clear.

like image 27
Jay Avatar answered Oct 13 '22 14:10

Jay


You need a 3rd gen iPod Touch for that to work. I've run into the same issue.

like image 23
Ferruccio Avatar answered Oct 13 '22 13:10

Ferruccio