Search code examples
androidgoogle-glasswear-osgoogle-api-clientgoogle-client

Is my Connected Node a Glass or a Watch?



I am currently working on a use case wherein i need to find if my watch is paired/connected with my phone, so that my phone application is able to send the notification data to wear.

If it is connected, then phone will send the notification data to wear or else, it will pop up some toast or anything notifying user that watch is not connected.

Currently, i am using NodeAPI to see the connected nodes. But, it could be possible that connected Node is my Glass and not the watch. How would i differ between the two?

PS, Is there a generic way to identify a node as watch or glass?


Solution

  • It shouldn't be an issue for you at the moment since Glass does not support NodeAPI.

    Please refer to my answer to your other question here.