Search code examples
androidandroid-notificationswear-osandroid-wear-notification

What's the right way to get Android Wear to refresh a media notification?


I have an app that plays music; I have a Broadcast Receiver that properly handles the commands from Android wear like KEYCODE_MEDIA_PLAY, KEYCODE_MEDIA_PAUSE, and KEYCODE_MEDIA_NEXT.

Everything works, but there's one issue: when I hit Play on the Wear notification, the Intent is fired, the music plays, but the notification isn't updated to show a 'Pause' icon until I swipe down and back up again, forcing the notification to be "refreshed." This issue does not occur on the phone. Is there a way to prompt this "refresh" to occur while the notification is active on the screen?


Solution

  • It turns out that this behavior was actually a bug in Android Wear since it seems to have been fixed with the 5.0.2 update.