0

Error - [WKInterfaceController pushControllerWithName:context:]: called from queue other than main. This is not supported and may fail in the future.

In my iOS with apple watch, this error is coming when I am trying to push WKInterfaceController.

What I tried -

  1. DispatchQueue.main.thread

  2. Delay Timer

    DispatchQueue.main.async { if message["xyz screen"] == "new screen" { popToRootController() self.pushController(withName: "new", context: self) return } }

0 Answers0