         return true
     }
 
-    
+
+    // MARK: - WC Session
+
+
+    func sessionWatchStateDidChange(session: WCSession) {
+        DLOG("Session: \(session)")
+    }
+
+    func sessionReachabilityDidChange(session: WCSession) {
+        DLOG("Session: \(session)")
+    }
+
+    func session(session: WCSession, didReceiveMessage message: [String : AnyObject], replyHandler: ([String : AnyObject]) -> Void) {
+        DLOG("Session: \(message)")
+        replyHandler(["result": "not_updated"])
+    }
+
+
     // MARK: - NSUserActivity
 
+    override func updateUserActivityState(activity: NSUserActivity) {
+        DLOG("\(activity)")
+    }
+
     func application(application: UIApplication, willContinueUserActivityWithType userActivityType: String) -> Bool {
         return true
     }
 
 
     func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -> Void) -> Bool {
-        DLOG("Activity: \(userActivity.userInfo)")
-
-        if let userInfo = userActivity.userInfo {
-            if let urlString = userInfo["urlToActivate"] as? String {
-                let url = NSURL(string: urlString)
-                let success = openLaunchOptionsURL(url!)
-                return success
-            }
-        }
+        DLOG("Activity: \(userActivity.activityType) - \(userActivity.userInfo)")
+
+
+        if userActivity.activityType == CSSearchableItemActionType, let userInfo = userActivity.userInfo, let urlString = userInfo[CSSearchableItemActivityIdentifier] as? String {
+            DLOG("URL STRING: \(urlString)")
+            let url = NSURL(string: urlString)
+            let success = openLaunchOptionsURL(url!)
+
+            return success
+        } else if let userInfo = userActivity.userInfo, let urlString = userInfo["urlToActivate"] as? String {
+            let url = NSURL(string: urlString)
+            let success = openLaunchOptionsURL(url!)
+
+            return success
+        }
+
         return false
     }
 

        var station: CDStation?

        if let stationId = Int(ident) {
            station = CDStation.existingStation(stationId, inManagedObjectContext: Datamanager.sharedManager().managedObjectContext)
        } else {
            station = CDStation.searchForStation(ident, inManagedObjectContext: Datamanager.sharedManager().managedObjectContext)
        }

        if  let found = station {
            if found.isHidden.boolValue == true {
                found.managedObjectContext?.performBlockAndWait({ () -> Void in
                    found.isHidden = false
                    do {

    }


    func applicationWillResignActive(application: UIApplication) {
    }


    func applicationDidEnterBackground(application: UIApplication) {
        PlotFetcher.invalidate()
        StationFetcher.invalidate()
    }


