I've just implemented background fetch in my iOS app. I implemented this method in my app delegate:
- (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
The correct way of implementing this is to call completionHandler(UIBackgroundFetchResultNewData)
when there is new data, and completionHandler(UIBackgroundFetchResultNoData)
when there's nothing new to download.
However, not all web services can give this information. Some of them just require the developers to fetch new data all the time even though there is nothing new. In this case, what will be the downside of calling completionHandler(UIBackgroundFetchResultNewData)
at every background fetch?