I am new in app development. My app contains notification features. If I received notification means notification page will be shown. if i press back button from my notification means it does not redirect to my app it will be closed. But I want to open my app if I click back button from notification. kindly provide any ideas. My code:
public void onMessageReceived(String from, Bundle data) {
....
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this).setContentText(message).build();
...
}