             completionHandler(UIBackgroundFetchResult.NewData)
         }
     }
-
 
     func application(application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: NSError) {
         println(error.description)


        if recipientType == "User" {

            println("try reply \"\(responseText)\" to [\(recipientType): \(recipientID)]")

            sendText(responseText, toRecipient: recipientID, recipientType: recipientType, afterCreatedMessage: { _ in }, failureHandler: nil, completion: { success in
                println("reply to [\(recipientType): \(recipientID)], \(success)")
            })
        }


    // MARK: Private

    private func tryReplyText(text: String, withUserInfo userInfo: [NSObject: AnyObject]) {

        guard let
            recipientType = userInfo["recipient_type"] as? String,
