将数据从移动应用发送到Android Wear延迟 [英] Sending data from mobile app to Android Wear delay

查看:86
本文介绍了将数据从移动应用发送到Android Wear延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在设置应用程序和表盘之间同步数据,但是我没有运气。我尝试将googleApiClient与侦听器& onDataChanged和DataMaps,但穿戴式设备在接收数据方面存在很大的延迟。 (我说的是要从移动设备发送5分钟或更长时间)。



我也尝试使用Teleport Library for Wearable,并且可以确认可以在移动端使用,但在磨损端却什么也没收到。在移动设备与穿戴设备之间进行通信的最佳方式是什么?

解决方案

从Play Services 8.3开始,使用DataApi进行数据同步已批量处理,以一定的频率完成操作,这意味着您的数据同步最多可延迟30分钟。如果需要立即同步,则需要确保将请求设置为紧急


I'm trying to sync data between a settings app and a watch face and I'm having no luck. I've tried using a googleApiClient with listeners & onDataChanged and DataMaps, but there is a huge delay on the wear device to receive the data. (I'm talking like 5 minutes or more from being sent on from the mobile).

I've also tried to use Teleport Library for Wearable and I can confirm it works on the mobile side, but I receive nothing on the wear side.

Is there typically a huge delay with sync setting options? What's the best way to communicate between mobile and wear?

解决方案

Starting with Play Services 8.3, data synchronization using DataApi is batched up and done with a certain frequency which means synchronization of your data can be delayed up to 30 minutes. If you need immediate sync, you need to make sure your request is set as urgent.

这篇关于将数据从移动应用发送到Android Wear延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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