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

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -