ios - watchconnectivity not working on device - only simulator -


i have followed many tutorials online , seen how connect watch iphone able send data , have following code to:

send:

watchsession.sendmessage(["name":"maz"], replyhandler: nil) { (error) -> void in      } 

receive:

func session(session: wcsession, didreceivemessage message: [string : anyobject]) {     mylabel.settext(message["name"]! as? string)     //reloadwatchtable() } 

the code works when use simulator not when i'm running on iphone , apple watch.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -