I m trying to work on WCSession default instance. But it gives the following complier issue.
Asked
Active
Viewed 85 times
1 Answers
0
Try this:
var session : WCSession!
func startSession() {
if WCSession.isSupported() {
session = WCSession.default()
session.delegate = self
session.activate()
}
}
Call startSession() wherever you want to activate your WCSession. Preferably in AppDelegate and ExtensionDelegate.

Zachary Bell
- 559
- 4
- 18