Android Multiple Notifications and with multiple intents

前端 未结 4 955
攒了一身酷
攒了一身酷 2021-02-13 19:02

I have a fairly simple app that takes the input from a user and then sets it as a notification. The user can create as many notifications as he/she likes. I want the user to cli

4条回答
  •  你的背包
    2021-02-13 19:43

    Set different requestCode helps me create and update current intent.

    val pendingIntent = PendingIntent.getActivity(
      this,
      notificationID,
      intent,
      PendingIntent.FLAG_UPDATE_CURRENT
    )
    

提交回复
热议问题