I currently receive notifications perfectly in my app, but I want to know how to identify when a notification brings a link (link) or just want to initiate an Activity.class
Intent intent = new Intent(this, MainActivity.class);
intent.putExtra("link", link);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
As you can see I have the two parameters to start the two types of notification but the app only detects the Intent with the Class, although it has a link in the notification.
In Summary: How can I put two Intent to detect what type of notification it is.