How to customize baidu push notification?

后端 未结 2 1675
梦如初夏
梦如初夏 2021-01-24 10:42

I am using baidu push notification in my app. The issues i am facing are i am not able to customize its notification UI and not able to clear it from status bar unless i tap on

相关标签:
2条回答
  • 2021-01-24 11:07

    I got answer for this question. Actually the second parameter i pass in PushManager.setNotificationBuilder(getApplicationContext(), 1, cBuilder); is notification ID. Means if u want to display a custom UI from server this id should be passed with notification. Then client will take corresponding builder with that ID. In my case i was not getting this parameter from server

    0 讨论(0)
  • 2021-01-24 11:28

    you can pass setNotificationTitle("notification_title"); and setNotificationText("notification_content"); this two parameter is fixed from baidu push notification server

    0 讨论(0)
提交回复
热议问题