How to customize baidu push notification?

后端 未结 2 1677
梦如初夏
梦如初夏 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

提交回复
热议问题