Open application after clicking on Notification

后端 未结 11 2110
南笙
南笙 2020-11-22 13:52

I have a notification in my app with the following code:

//Notification Start

   notificationManager = (NotificationManager) getSystemService(Context.NOTIFI         


        
11条回答
  •  醉梦人生
    2020-11-22 14:53

    Looks like you missed this part,

    notification.contentIntent = pendingIntent;
    

    Try adding this and it should work.

提交回复
热议问题