Android Wear Specific Notification

前端 未结 5 2026
醉话见心
醉话见心 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:39

    Actually you can do it using .setMinPriority() on the wearable notification (while it's not official, it works for now)

     Notification summaryNotification = new WearableNotifications.Builder(builderG)
            .setGroup(GROUP_KEY_MESSAGES, WearableNotifications.GROUP_ORDER_SUMMARY)
            .setMinPriority() 
            .build();
    

提交回复
热议问题