Post not yet marked as solved
Post marked as unsolved with 1 replies, 457 views
- (void)applicationDidEnterBackground:(UIApplication *)application { BGAppRefreshTaskRequest *refreshRequest = [[BGAppRefreshTaskRequest alloc] initWithIdentifier:kBGRefreshTaskIdentifier]; @try { NSError *error ; [[BGTaskScheduler sharedScheduler] submitTaskRequest:refreshRequest error:&error]; } @catch (NSException *exception) { }}