为什么从WatchKit扩展程序向iOS发送消息并获得回复的速度如此之慢? [英] Why sending message from WatchKit extension to iOS and getting back a reply is so slow?

查看:201
本文介绍了为什么从WatchKit扩展程序向iOS发送消息并获得回复的速度如此之慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 sendMessage 方法将一条消息从WatchKit扩展程序发送到iOS应用程序。收到回复大约需要 230毫秒。时间不取决于iOS应用程序是在屏幕上还是在后台运行。 230ms大致是光线在地球周围和背部行进所需的时间。但是当我测试时,手机距离我的手表30厘米。

I am using sendMessage method to send a message from WatchKit extension to an iOS app. It takes about 230 ms on average to receive a reply. The time does not depend on whether the iOS app is on screen or running in the background. 230ms is roughly the time it takes for light to travel the Earth circumference and back. But the phone is sitting 30 cm from my watch when I am testing this.

问题


  1. 为什么这么慢?

  2. 它应该这么慢吗?

  3. 有吗一种让它更快的方法?

观察:根据我在watchOS 1中的先前实验,通信速度有点快,往返时间约为50毫秒。

An observation: according my previous experiments in watchOS 1 communication was a bit faster, a roundtrip used to take about 50 ms.

从WatchKit扩展程序发送消息

这篇关于为什么从WatchKit扩展程序向iOS发送消息并获得回复的速度如此之慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆