Android Wear + Wearable ChannelApi openChannel not opening with remote node?

When opening a channel through a local node :

Wearable.NodeApi.getLocalNode(googleApiClient)

... the onChannelOpened Listener fires successfully .

However, when opening a channel through a remote node :

Wearable.NodeApi.getConnectedNodes(googleApiClient)

... starts onChannelOpened Listener never and subsequently cannot exchange files on this channel.

I know that both devices require openChannel, but channel listeners only activate the device that opens it locally ... How does the remote device send or receive files if it does not know that it is connected? Here is a breakdown between two devices

Wearable:

  • save local file - successfully
  • .openChannel () node -
  • .sendFile -

Handle Held:

  • .openChannel () node - fail
  • .receiveFile from channel - fail
  • -
+4
1

Toubleshooting

, :

API

, , . , node. API:

, , openChannel: node.

+8

All Articles