             guard let event = lastEvent else {
                 return
             }
+            #if swift(>=3.0)
             NotificationCenter.default.post(name: Notifications.eventSentSuccessfully.name, object: nil, userInfo: event.serialized)
+            #else
+            NSNotificationCenter.defaultCenter().postNotificationName(Notifications.eventSentSuccessfully.rawValue, object: nil, userInfo: event.serialized)
+            #endif
+            
         }
     }
     

    internal typealias Date = NSDate
#endif

protocol NotificationName {
    var name: Notification.Name { get }
}

        return Notification.Name("Sentry/" + self.rawValue)
    }
}
#endif

@objc public class SentryClient: NSObject, EventProperties {
    
    #if swift(>=3.0)
    private enum Notifications: String, NotificationName {
        case eventSentSuccessfully // Sentry/eventSentSuccessfully
    }
    #else
    private enum Notifications: String {
        case eventSentSuccessfully = "Sentry/eventSentSuccessfully"
    }
    #endif
    
    // MARK: - Static Attributes
    
