I'm trying to use WCSession.sendMessage Watch -> Phone to have the phone perform some data retrieval and reply immediately. Now, the confusing part of this is that I'm not clear on if the iPhone is supposed to be woken up by this even if it is killed or suspened.
The WCSession.sendMessage documentation states:
"Calling this method from your WatchKit extension while it is active and running wakes up the corresponding iOS app in the background and makes it reachable. Calling this method from your iOS app does not wake up the corresponding WatchKit extension. If you call this method and the counterpart is unreachable (or becomes unreachable before the message is delivered), the
errorHandler
block is executed with an appropriate error. The errorHandler
block may also be called if the message
parameter contains non property list data types."However, the documentation for the corresponding WCSessionDelegate method states:
"Use messages to communicate quickly with the counterpart process. Messages can be sent and received only while both processes are active and running."
These statements seem conflicting, can anyone tell me what the expected behavior is? I'm currently seeing the latter, am hoping to achieve the former.
Thanks!