The pattern to use for this is:
- Create a DataItem on the mobile. It will be synced to the connected wearable automatically.
- On the wearable, implement a
WearableListenerServiceand listen foronDataChangedevents. - When you receive a
DataItem, create a notification (with the data sent in theDataItem) and send it locally (i.e. on the wearable). UsesetContentIntent()on the notification to specify a pending intent that will launch your wearable activity. - Don’t forget to also provide an intent that is fired when the user dismisses the notification on the wearable, so that the
DataItemcan be removed. Otherwise, you will not receive any update events.
I’ve created a sample project that shows all of this in action.
Check out this question if the onDataChanged method is not getting called.