 
         var vc = ElloTabBarController.instantiateFromStoryboard()
         vc.setProfileData(user, responseConfig: responseConfig)
+        if let payload = pushPayload {
+            vc.selectedTab = .Notifications
+            pushPayload = .None
+        }
+
         swapViewController(vc) {
             if let alert = PushNotificationController.sharedController.requestPushAccessIfNeeded() {
                 vc.presentViewController(alert, animated: true, completion: .None)


// MARK: Logout events
extension AppViewController {

    @objc
    func userLoggedOut() {
        let authToken = AuthToken()
        authToken.reset()
        removeViewController()
    }

    @objc
    func systemLoggedOut() {
        let authToken = AuthToken()
        authToken.reset()

    private func setupNotificationObservers() {
        userLoggedOutObserver = NotificationObserver(notification: AuthenticationNotifications.userLoggedOut, block: userLoggedOut)
        systemLoggedOutObserver = NotificationObserver(notification: AuthenticationNotifications.systemLoggedOut, block: systemLoggedOut)
        receivedPushNotificationObserver = NotificationObserver(notification: PushNotificationNotifications.interactedWithPushNotification, block: receivedPushNotification)
    }

    private func removeNotificationObservers() {
        userLoggedOutObserver?.removeObserver()
        systemLoggedOutObserver?.removeObserver()
        receivedPushNotificationObserver?.removeObserver()
    }

}
