Steve Vaughn
Steve Vaughn

Reputation: 11

How do I Mute/UnMute Notifications in Android Wear

Andoid Wear allows the user to Mute and Unmute notifications on the watch. Is there a way to do this from my app? I want to include a user setting that lets them to choose whether or not to be interrupted while using the app. I cannot find a clear way to do this in the API docs.

Upvotes: 1

Views: 822

Answers (1)

Hoi
Hoi

Reputation: 599

The main mute and unmute is a system setting so the app will not be able to change that programmatically without rooting. That said, if you purely wanted to mute your own app on wear but continue to display the notification on your mobile device, you can choose to display the notification on the mobile / tablet device and not the wearables by setting setLocalOnly to true.

Upvotes: 0

Related Questions