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
Post a Comment