if you want run iOS app functionality in background mean,please copy the below code and paste into appDelegate class.
- (void)applicationDidEnterBackground:(UIApplication *)application
{
if ([[UIDevice currentDevice] isMultitaskingSupported])
{
//Check if device supports mulitasking
UIBackgroundTaskIdentifier bgTask;
UIApplication *app = [UIApplication sharedApplication];
bgTask = [app beginBackgroundTaskWithExpirationHandler:^{
[app endBackgroundTask:bgTask];
}];
}
}
0 comments:
Post a Comment