Access the Wearable Data Layer


Refer to the following related resources:

Note: The Data Layer API can only send messages and synchronize data with Android devices or Wear OS watches. That means if your Wear OS device is paired with an iOS device, the Data Layer API won't work.

For this reason, you shouldn't use the Data Layer API as the primary way to communicate with a network. Instead, your app should follow the same pattern as a mobile app with some minor differences.

Use a minimal client

A minimal client, as shown in the following example, is enough to begin. See Access Google Play services APIs for additional information:


val dataClient: DataClient = Wearable.getDataClient(context)


DataClient dataClient = Wearable.getDataClient(context);




val dataClient: DataClient =
            Wearable.getDataClient(context, options)


DataClient dataClient = Wearable.getDataClient(context, options);
