Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WatchConnectivity connection in iPhone -> Watch direction

Tags:

ios

ios9

watchkit

I'm trying to make WCSession (Xcode 7.0 beta 5) work in the Phone -> Watch direction on real devices (in a simulator it works perfectly) but every time get an error:

Error: "Domain=WCErrorDomain Code=7006 Watch app is not installed".

I mean everything works in the Watch -> Phone direction (sendMessage:, updateApplicationContext:, CoreLocation, etc.). In order to exclude code-related problems I'm using the Apple's Potloc application for tests.

It seems I've tried everything and here's a full list:

  1. Paired/Unpaired Watch.
  2. Rebooted iPhone/Watch.
  3. Reset Watch.
  4. Reset iPhone (reset all settings).
  5. Reinstalled iPhone/Watch applications a bunch of times.
  6. Switched on/off "Show App on Apple Watch" in "My Watch" application on iPhone.

The only way iPhone is able to communicate with Watch is to answer using a callback in WCSession methods.

What else can I do?

like image 704
Dmytro Hutsuliak Avatar asked Aug 19 '15 11:08

Dmytro Hutsuliak


People also ask

How do I know if my Apple Watch is connected to my iPhone?

To see if your Apple Watch is connected to your iPhone, touch and hold the bottom of the watch screen, swipe up to open Control Center, then look for the Connected status icon .

Why is my Apple Watch not connecting to my iPhone?

Try to connect your Apple Watch and iPhone again On your iPhone, make sure that Airplane Mode is off and that Wi-Fi and Bluetooth are on. To check, open Control Center. If you see the Airplane Mode icon on your watch face, Airplane Mode is on. Open Control Center, then turn off Airplane Mode.

How do you connect I watch to iPhone?

To turn on your Apple Watch, press and hold the side button until you see the Apple logo. Bring your iPhone near your Apple Watch, wait for the Apple Watch pairing screen to appear on your iPhone, then tap Continue. Or open the Apple Watch app on your iPhone, then tap Pair New Watch.

How does Apple Watch send data to iPhone?

Watch Connectivity allows you to send data between your Watch app and its companion iPhone app when both devices are within Bluetooth range or on the same Wi-Fi network.


2 Answers

As expected the problem has been solved in Xcode 7.0 beta6. A project just has been rebuilt without any additional configuration and then the item #6 from my aforementioned list has solved the problem:

  1. Switched on/off "Show App on Apple Watch" in "My Watch" application on iPhone.
like image 97
Dmytro Hutsuliak Avatar answered Sep 19 '22 12:09

Dmytro Hutsuliak


This seems similar to this: WatchOS 2 (beta 5): watchAppInstalled returns false

Did you watch out for "isWatchAppInstalled"? If yes, did it say YES or NO?

Maybe the other solutions mentioned over there work for you?

like image 37
appleitung Avatar answered Sep 19 '22 12:09

appleitung