I have read carefully the apple dev user guide re multitasking but i still can’t understand how i can run a simple operation while on background. I did the following simple experiment but nothing happened:
- (void)applicationDidEnterBackground:(UIApplication *)application
{
sleep(3);
UIAlertView *alert1 = [[UIAlertView alloc] initWithTitle:@"title" message:@"test" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil , nil];
[alert1 show];
}
So I understand that adding support for audio/location/VoIP operations while in background in given by default, but how can I add support for such a simple operation?
Thanks a lot for the help.
I Hope this ans. is very Useful for Your Problem
When you close Application than you can see in background the message in AlertView..