                     if let subType = userInfo["subtype"] as? String {
                         if subType == "accepted" {
                             syncFriendshipsAndDoFurtherAction {
-                                completionHandler(UIBackgroundFetchResult.NewData)
                                 APService.handleRemoteNotification(userInfo)
                             }
                         }
                     }
                 }
 
+                completionHandler(UIBackgroundFetchResult.NewData)
                 // 非前台才记录启动通知类型
                 if application.applicationState != .Active {
                     self.remoteNotificationType = remoteNotificationType

                    officialMessages { messagesCount in
                        println("new officialMessages count: \(messagesCount)")

                        completionHandler(UIBackgroundFetchResult.NewData)
                        APService.handleRemoteNotification(userInfo)
                    }


                        return
                    }
                    syncUnreadMessages() {
                        APService.handleRemoteNotification(userInfo)
                    }

