Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show ongoing notifications in Android Wear

I've been playing around with Android Wear and making some dummy apps. What I've noticed is that Android Wear doesn't seem to show the notifications that are ongoing,i.e., notifications with setOngoing(true). Any way to show these notifications on Wear???

like image 603
d3m0li5h3r Avatar asked Mar 20 '14 07:03

d3m0li5h3r


1 Answers

barkside's answer is correct. I recently wrote an article describing the steps in details, but basically:

  1. Create a wearable app with a service implementing WearableListenerService.
  2. Send a data item from the handheld app using the Data API.
  3. In the wearable app's service, handle receiving the data item & build an ongoing notification upon receipt.

A sample app is available here: https://github.com/doubleencore/WearOngoingNotificationSample

And step-by-step directions are available here: http://www.doubleencore.com/2014/07/create-custom-ongoing-notification-android-wear/

like image 181
carloshwa Avatar answered Sep 27 '22 21:09

carloshwa