Okay, so there may be times wherein you do not want to pass an Intent to redirect users to an app whenever the user may tap on the notification. The quickest thing that I thought might work was to pass a null Intent to the Notification object.
However, this is wrong as it can lead to problems. The correct way is to do it like this
|
1 |
notification.setLatestEventInfo(context, "title", "message", PendingIntent.getActivity(context, 0, new Intent(), 0)); |
Try it. This should do the trick.
