1

Is there any way to prevent a notification be shown on Android Wear device? I know it's possible by using setOngoing(true) but I don't want my notification to be ongoing.

iamkaan
  • 1,495
  • 2
  • 23
  • 43

1 Answers1

3

you should call setLocalOnly(true) on the NotificationCompat.Builder.

From the documentation

Set whether or not this notification should not bridge to other devices.

you can read more here

Blackbelt
  • 156,034
  • 29
  • 297
  • 305