2016-08-02 46 views

回答

1

内容可用标签也需要和使用这种方法:

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

    //add notification data to your database here 

    completionHandler(UIBackgroundFetchResultNewData); 
} 

这添加到您的Xcode。

enter image description here

相关问题