Android Wear Specific Notification

前端 未结 5 2024
醉话见心
醉话见心 2021-02-13 23:21

The WearableNotifications.Builder setLocalOnly method can be used for displaying a notification on a phone only, and not mirror it to a Wear device.

Is th

5条回答
  •  抹茶落季
    2021-02-13 23:29

    For the official SDK as per this question on Android Wear Developers Google+ page:

    You can use the same notification APIs on the wearable that you use on a phone by writing an android wear app. If you need to trigger that notification from the phone, you can use the Wearable apis in Google Play Services to send messages to trigger them.

提交回复
热议问题