Watchkit:来自 sendMessage 的 watchos2 回复非常慢

Watchkit: watchos2 reply from sendMessage is very slow

我正在使用 watchOS2 应用程序。我的 watch 应用程序执行一些 NSURLSession 任务(速度非常快)并使用 Watch Connectivity 向 phone 发送回复。我正在使用 sendMessageData 向 phone 发送请求,并在执行所需任务后发送回复。但是响应需要很长时间才能到达手表。是否有任何其他方法可以提供更快的响应。

我曾在以下网址看到类似的问题:

在答案中说 "sendMessage is much more expensive method than other communication API those are provided by WCSession"。

还有哪些通信 API 更快?

如果您需要立即从对方那里得到回复,那么带有 replyHandler 的 sendMessageData 是最好的选择。