I synchronize events between wearable and smartphone. Since I want my events to be received over the phone, even if they were disabled, I started using DataAPI instead of MessageAPI , but now "synchronization" takes about 1-2 seconds instead of 0.1-0.5 seconds (estimated timings).
In case of messages, I pass a string path, for example, "/ notification / click" and two bytes of raw data. In the case of DataAPI, I use the path "/ notification / click / 1" and one byte of raw data. Have you seen this behavior too? Do you know how to do this, except for using DataAPI only if the device is disconnected?
If you want to see some code, leave a comment. Since this code has a large tile code, I have not added it (yet).
source share