Sending data from mobile app to Android Wear delay [duplicate]

▼魔方 西西 提交于 2019-12-10 20:02:23

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/34702376/sending-data-from-mobile-app-to-android-wear-delay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!