I just added the Watch app to my project and tried:
override func awakeWithContext(context: AnyObject?) { super.awakeWithContext(context) let res = WKInterfaceController.openParentApplication(["key" : "value"]) { (replyInfo, error) -> Void in print("replyInfo : \(replyInfo) + error \(error)") } print(res) // true here }
In my AppDelegate, I wrote:
func application(application: UIApplication, handleWatchKitExtensionRequest userInfo: [NSObject : AnyObject]?, reply: ([NSObject : AnyObject]?) -> Void) { reply(["replyKey" : "replyValue"]); }
When I launch the Watch app, I only have:
replyInfo: [:] + error Optional (error Domain = FBSOpenApplicationErrorDomain Code = 3 "Operation could not be completed. (FBSOpenApplicationErrorDomain eor 3.)")

Is it because of the simulator? Do you know what you are doing wrong?
Thank!
ios ios-simulator watchkit compiler-errors apple-watch
Pierre Jul 15 '15 at 19:07 2015-07-15 19:07
source share