0

Hi there ios blog team, I was wondering if you could help me with a connectivity error that I am experiencing. I have followed your watchOS Connectivity tutorial but I seem to be having a problem with my application. I have created the single view application and also added in the WCSessionDelegate into my extension.

import WatchKit

class ExtensionDelegate: NSObject, WKExtensionDelegate, WCSessionDelegate { }
I have also checked the session if the session is not there and told it to print out if it cant find it

guard WCSession.isSupported() else {
print("Session is not supported")
return
}

 

let session = WCSession.defaultSession()
session.delegate = self
session.activateSession()

However I am still getting a No WatchConnectivity error. I’m confused as If the session is working then I think I have it coded right?

iOS-Blog Admin Team answered