title: How to open Fragment on click of push notification
body: <blockquote>
    <p>My Firebasemessagingservice class code for passing intent:</p>
  </blockquote>
  
  <pre><code>private void showNotification(String message){
      Intent intent=new Intent(this, DrawerActivity.class);
      intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
      intent.putExtra("data", message);
      PendingIntent pendingIntent=PendingIntent.getActivity(this,0,intent,PendingIntent.FLAG_UPDATE_CURRENT);
  
      NotificationCompat.Builder builder=new NotificationCompat.Builder(this)
              .setAutoCancel(true)
              .setContentTitle("Registry")
              .setContentText(message)
              .setSmallIcon(R.drawable.com_facebook_button_send_icon_blue)
              .setContentIntent(pendingIntent);
      NotificationManager manager=(NotificationManager) getSystemService(NOTIFICATION_SERVICE);
      manager.notify(0,builder.build());
  }
  </code></pre>
  
  <blockquote>
    <p>My Fragment BaseActivity code in onCreate() method:</p>
  </blockquote>
  
  <pre><code>Intent notifyIntent = getIntent();
      Bundle extras = notifyIntent.getExtras();
      if (extras != null) {
  
         replacefragment code;
  
      }
  </code></pre>
  
  <p>It's not working..</p>