Background Fetch
How to Enable Background Fetch?
- (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
{
[I2WAPI triggerBackgroundFetchOnSuccess:^{
completionHandler(UIBackgroundFetchResultNewData);
} onFail:^{
completionHandler(UIBackgroundFetchResultFailed);
} onNoData:^{
completionHandler(UIBackgroundFetchResultNoData);
}];
......
}
Last updated