Hide in-app notifications from Android notifications history -


i'm doing in-app notifications on android. i'm using notificationcompat.builder , notificationmanager it. set notifications priority priority_high display them popup.

but notification displayed in android notifications history. how prevent ?

to cancel notification call

notificationmanager notificationmanager = (notificationmanager)getsystemservice(context.notification_service); notificationmanager.cancel(notification_id); 

i suggest calling code after create pop there no notification left in tray. found code here: how clear notification in android


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -