ios - WatchKit : error while communicating with the phone app -


i trying communicate iphone app. on watch controller have following code:

 func requestdatafromphone(messagetext: string) {         var infodictionary = dictionary<string,string>()         infodictionary["getappointmentstring"] = "message"         wkinterfacecontroller.openparentapplication(infodictionary) {             (replydictionary, error) -> void in             println("we made it!")             if let castedresponsedictionary = replydictionary as? [string: string],                 responsemessage = castedresponsedictionary["message"]             {                 println(responsemessage)                 self.appointmentstring.settext(responsemessage)             }         }     } 

on appdelegate of iphone app , have code :

 func application(application: uiapplication, handlewatchkitextensionrequest userinfo: [nsobject : anyobject]?, reply: (([nsobject : anyobject]!) -> void)!) {          let response = "appointment @ noon tomorrow"         let responsedictionary = ["message" : response]         if let infodictionary = userinfo as? [string: string],             message = infodictionary["getappointmentstring"]         {              reply(responsedictionary)         }         reply(responsedictionary)     } 

i getting following error :

"error domain=com.apple.watchkit.errors code=2 \"the uiapplicationdelegate in iphone app never called reply() in -[uiapplicationdelegate application:handlewatchkitextensionrequest:reply:]\" userinfo=0x60800006b580 {nslocalizeddescription=the uiapplicationdelegate in iphone app never called reply() in -[uiapplicationdelegate application:handlewatchkitextensionrequest:reply:]}"

what missing here ? pointers helpful. thanks.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -