ios - How can I get the REAL apple watch to open parent application -


we have application needs show content on apple watch , press open parent app , display share view sharing. still works on xcode 6.3 , simulator 8.3 on watch hardware functionality broken. else works parent app not open unless manually open phone. code simple

request parent app apple watch

    wkinterfacecontroller.openparentapplication(["sitename": "ds"],         reply: { (replyinfo, error) -> void in         nslog("reply: \(replyinfo)")     }) 

then, in parent app use send success. not called in actual hardware using simulator!

    func application(application: uiapplication,     handlewatchkitextensionrequest userinfo: [nsobject : anyobject]?,     reply: (([nsobject : anyobject]!) -> void)!) {          if let userinfo = userinfo, request = userinfo["sitename"] as? string {             let sitename = userinfo["sitename"] as? string             reply(["message":"received launch request \(sitename)"])             uiapplication.sharedapplication().openurl(nsurl(string: "dsextension://more")!)         }      } 

edit: note, functionality possible using actual hardware can see when launch camera app watch. tap camera icon on watch , camera on phone open. why apple lock out our apps on true hardware?

there no method in watchkit open iphone app in foreground watch (other handoff). while can in simulator, isn't supported on actual hardware. that's why you're seeing behavior.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -