didReceiveRemoteNotification中的UIBackgroundFetchResult

时间:2016-04-05 20:41:25

标签: ios8 push-notification xcode7

在didReceiveRemoteNotification调用中,UIBackgroundFetchResult在completionHandler中的含义是什么?那就是 - SDK使用UIBackgroundFetchResult的目的是什么?

 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler 

具体来说,无论我在收到推送通知时是否提取了新数据,如果我返回以下内容会发生什么?

UIBackgroundFetchResult fetchResults = UIBackgroundFetchResultNewData;
if (completionHandler) {
    completionHandler(fetchResults);
}

0 个答案:

没有答案