 
         let aps = notification.request.content.userInfo["aps"] as! [String: Any]
 
-        self.sendActivity("openedPushNotification", additionalContent: aps)
+        self.sendActivity(BreinActivityType.OPEN_PUSH_NOTIFICATION.rawValue, additionalContent: aps)
 
         // call BreinNotification-Handler
         Breinify.getNotificationHandler()?.willPresent(notification)

        backgroundTask = UIApplication.shared.beginBackgroundTask { [weak self] in
            self?.endBackgroundTask()
        }
        // assert(backgroundTask != UIBackgroundTaskInvalid)
    }

    func endBackgroundTask() {

        BreinLogger.shared.log("UserNotification didReceive invoked with response: \(response).")

        let aps = response.notification.request.content.userInfo["aps"] as! [String: Any]
        self.sendActivity(BreinActivityType.OPEN_PUSH_NOTIFICATION.rawValue, additionalContent: aps)

        // call BreinNotification-Handler
        Breinify.getNotificationHandler()?.didReceive(response)
