title: Get notification Title from BroadcastReceiver (direct reply Android N)
body: <p>Since I'm building a messaging app, and there could be more than one notification with the direct reply, I need to be able to identify which one is sending the text in order to send the message to the right person... How could I achieve that ? </p>
  
  <p>My thought was to get the title of the notification using extras, but I can't seem to get the extras in the BroadcastReceiver (in the Reply Reciever Activity). Extras only work when the notification is clicked and so dismissed (and so I can get the intent with the extra).</p>
  
  <p>Here is the code of the notification : </p>
  
  <pre><code>resultIntent= new Intent(NotificationService.this, StartNAFromNS.class);
                          resultIntent.putExtra(Intent.EXTRA_TITLE, underestood_name.replace("__", " "));
  
  
                          int Unique_Code = Retrieve_int("Unique_Code", 0, this);
                          Unique_Code=Unique_Code+1;
                          Save_int("Unique_Code", Unique_Code, this);
  
  
                          TaskStackBuilder stackBuilder = TaskStackBuilder.create(NotificationService.this);
                          stackBuilder.addParentStack(SearchActivity.class);
                          stackBuilder.addNextIntent(resultIntent);
                          PendingIntent resultPendingIntent =stackBuilder.getPendingIntent(Unique_Code,PendingIntent.FLAG_UPDATE_CURRENT);
                          PendingIntent replyPendingIntent = null;
                          if (Build.VERSION.SDK_INT &gt;= 24) {
                              replyPendingIntent = PendingIntent.getBroadcast(
                                      NotificationService.this,
                                      0,
                                      new Intent(NotificationService.this, ReplyReceiver.class),
                                      PendingIntent.FLAG_UPDATE_CURRENT
                              );
                          }
                          RemoteInput remoteInput = new RemoteInput.Builder(KEY_NOTIFICATION_REPLY)
                                  .setLabel("Tapez votre réponse ici")
                                  .build();
                          android.support.v4.app.NotificationCompat.Action replyAction = new android.support.v4.app.NotificationCompat.Action.Builder(
                                  0, "Répondre", replyPendingIntent)
                                  .addRemoteInput(remoteInput)
                                  .build();
                          miBuilder = new android.support.v4.app.NotificationCompat.Builder(NotificationService.this)
                                  .setGroup("Groupe01")
                                  .setShowWhen(true)
                                  .setSubText(summary)
                                  .setSmallIcon(R.drawable.ic_chat_bubble_outline_black_24dp)
                                  .setContentTitle(mess_sender)
                                  .setContentText(mess_contenu)
                                  .setAutoCancel(true)
                                  .setContentIntent(resultPendingIntent)
                                  .setColor(getResources().getColor(R.color.colorPrimaryDark))
                                  .setDefaults(Notification.DEFAULT_ALL)
                                  .setPriority(Notification.PRIORITY_HIGH);
  
                          if (Build.VERSION.SDK_INT &gt;= 24) {
                              miBuilder.addAction(replyAction);
                          }
                          NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
                          notificationManager.notify(notif_id, miBuilder.build());
                          Log.wtf("Notification", "Displayed");
  </code></pre>