Watch app cannot make direct requests without having the iPhone wifi on

Hey,

I am building a watch only application which contains some api requests to be integrated such that data should be shown. I am using the apple watch se and I have turned on the wifi in the watch. But when I am making an api request for example,

Guess I am trying to display a list and inorder to obtain that list I am required to make an api call from the watch app itself and I have written the required code.

There are 4 different scenarios I tested and these are the results

  1. IPhone wifi on, watch wifi on - works
  2. IPhone wifi on, watch wifi off - works
  3. IPhone wifi off, watch wifi on - doesn't work
  4. Both switched off - doesn't work

1,2,4 can be accepted. But I am not sure why 3 is not working. I tested the app store in the watch as well following the above 4 scenarios and still the results are same. So my hypothesis is that it's the behavior of the watch. But i am not sure the reason why 3. is not working since I am making a standalone app and the watch supports wifi or internet connection why can't we directly pull data via the watch internet connectivity? Please someone who can elaborate the reason will be greatly appreciated.

Thanks in advance!

Answered by Shehan_g in 687327022

I think it works only when the phone is switched off and I guess it's the behaviour. So can't handle it on the developer end. Anyone who finds out this as a major problem can refer to this,

If the app is not working while the phones wifi is switched off, then shutdown the phone and give a try. The app should work(It works for me). I am not quite sure this is a solution but since limited resources this would help some. And if anyone finds out a correct answer please post it in here.

https://stackoverflow.com/questions/69115146/watch-app-cannot-make-direct-requests-without-having-the-iphone-wifi-on?noredirect=1#comment122156456_69115146

Thanks.

WatchConnectivity is a framework for communicating between a watch app and its companion iOS app, so that tag doesn't apply in this case. Assuming you're making a URLSession request from the watch? Can you please paste a code snippet?

If I'm understanding you correctly, you're saying that the App Store can't connect either when the phone's WiFi is off. If that's the case, make sure the watch is connected to a 2.4GHz WiFi network, and that network actually has connectivity.

Accepted Answer

I think it works only when the phone is switched off and I guess it's the behaviour. So can't handle it on the developer end. Anyone who finds out this as a major problem can refer to this,

If the app is not working while the phones wifi is switched off, then shutdown the phone and give a try. The app should work(It works for me). I am not quite sure this is a solution but since limited resources this would help some. And if anyone finds out a correct answer please post it in here.

https://stackoverflow.com/questions/69115146/watch-app-cannot-make-direct-requests-without-having-the-iphone-wifi-on?noredirect=1#comment122156456_69115146

Thanks.

Watch app cannot make direct requests without having the iPhone wifi on
 
 
Q