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 -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -