Search code examples
androidpush-notificationbaidu

How to disable Baidu default notification


I am able to successfully register and receive Baidu push notification. Based on the payload I receive, I wanted to show my custom notification. But I am not able to disable the default notification, Baidu is showing in the notification bar when a notification arrives. I tried by subclassing the PushMessageReceiver and overriding onMessage and onNotificationArrived, but none of them worked. Is there any way to disable the Baidu default notification?


Solution

  • Make the payload body attribute as message or vice versa to change from default to regular notification