Android Wear特定的通知通知、Android、Wear

2023-09-05 05:48:20 作者:落日°

WearableNotifications.Builder setLocalOnly方法可以用于上只有一个电话显示一通知,并且不反映到一个磨损设备。

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 there a way to do the opposite, so creating a notification that will display only on the Wear device?

推荐答案

有关的官方SDK按的在Android开发者佩戴的Google+页面这个问题:

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

您可以通过编写一个Android应用程序磨损上使用,你在手机上使用可穿戴相同的通知的API。如果您需要触发通知,从手机,你可以使用在谷歌游戏服务的可穿戴式API来发送消息来触发它们。

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.