From a Wear app I'm trying to constantly check if the Wear device is connected to the Handheld device. We can do that through Wearable.getNodeClient(context).connectedNodes
. Is there any way to add a listener to that data? Also, is there any way to make sure any of these nodes is a Handheld device?
Using the CapabilityClient we can know if the app is installed by adding a capability to the wear.xml
file in the Handheld app. I am not looking to check that.
I've also seen this question, but it doesn't answer mine.