I am developing a watchOS extension which uses WCSession
to communicate with the iPhone. However, I do not own an Apple Watch and therefore have to rely on the Watch Simulator to test my code.
Is there a way to test the scenario where the Watch is disconnected from the phone in the Simulator?
If not, is there some documentation or a well-researched blog post that gives some insight into the behavior of WCSession
in this case?
Check your Apple Watch connection You can also check your connection in Control Center. When your Apple Watch connects again, the green iPhone icon appears. First, bring your Apple Watch and paired iPhone close together. If you still see that the devices are disconnected and need help, try the steps below.
Press and hold the Digital Crown until you see the red Reset button. Tap Reset, then tap Reset again to confirm. After Apple Watch unpairs completely, you can pair again. Remember that you'll need the Apple ID and password that were used to set up the watch.
When your iPhone is off or out of range, your Apple Watch can use a Wi-Fi network to send and receive data. Your watch can also connect to a cellular network if it's a cellular model. And if you've set up an Apple Watch for a family member, they can use a cellular or Wi-Fi connection with their watch.
If you need to erase and unpair your Apple Watch without your iPhone, you can log on to icloud.com and remove your Apple Watch under Settings → My Devices.
Quitting the iPhone simulator should let you approximate this scenario.
I dont think so its possible because Apple doc says,
Additionally, WatchKit apps have a reliable connection to the simulated host device because they both are running in the Simulator.
Apple mentioned this in Hardware Difference section of Simulator User Guide
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With