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

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

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -