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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

java - Log4j2 configuration not found when running standalone application builded by shade plugin -

python - How do I create a list index that loops through integers in another list -