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
- IPhone wifi on, watch wifi on - works
- IPhone wifi on, watch wifi off - works
- IPhone wifi off, watch wifi on - doesn't work
- 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!
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.
Thanks.