Show notification only on phone (not on Android Wear) -


is there way prevent notification shown on android wear device? know it's possible using setongoing(true) don't want notification ongoing.

you should call setlocalonly(true) on notificationcompat.builder.

from documentation

set whether or not notification should not bridge other devices.

you can read more here


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -