             case .Completed:
                 rootViewController.pushViewController(upVC, animated: false)
             }
-        }.addDisposableTo(self.disposeBag)
+            }.addDisposableTo(self.disposeBag)
     }
     
     func printOutErrorMessageAndCode(err: TapglueError?) {

import Tapglue
import RxSwift
import AWSS3


@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    
    let appToken = "02930ef5d193f8c78e5d8c7d80a5a9dc"
    let url = "https://api.tapglue.com"

        print("Failed to register:", error)
    }
    func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) {
                
        if application.applicationState == UIApplicationState.Active {
            // Get message
            if let aps = userInfo["aps"] as? NSDictionary {
                if let alert = aps["alert"] as? NSString {
                    
                    let murmur = Murmur(title: alert as String)
                    
                    // Show and hide a message after delay
                    show(whistle: murmur, action: .Show(3))
                }
            }
        } else {
            if let urn = NSURL(string: userInfo["urn"] as! String) {
                switch urn.pathComponents![1] {
                case "posts":
                    retrievePostWithIDAndUserWithID(urn.pathComponents![urn.pathComponents!.indexOf("posts")!+1])
                case "users":
                    retrieveUserWithID(urn.pathComponents![urn.pathComponents!.indexOf("users")!+1])
                default: ""
                }
            }
        }
    }
    
    //Mark: - Tapglue
