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 -

c# - Can I intercept a SOAP response in .NET before a content type binding mismatch ProtocolException? -

css - Can I use the :after pseudo-element on an input field? -