Task completion - applications may request additional time from the system to complete a given task.
I use this method to complete the task,
- (void)applicationDidEnterBackground:(UIApplication *)application { UIApplication *app = [UIApplication sharedApplication]; bgTask = [app beginBackgroundTaskWithExpirationHandler:^ { NSLog(@"This is Testing"); [app endBackgroundTask:bgTask]; bgTask=UIBackgroundTaskInvalid; }]; }
But I do not get any result from this method. Someone will tell me what I'm doing wrong. You can tell what is the best way to implement to complete the task.
Hello,
Arunkumar.P
source share