title: Handle specific Activity navigation on notification click
body: <p>I searched everywhere, but nothing I found works.</p>
  
  <p>I want to start a specific Activity after notification click, but the app continues to start from SplashActivity.</p>
  
  <p>Here is my code...I'm starting becoming crazy trying solving this...</p>
  
  <p><strong>Firebase Implementation</strong></p>
  
  <pre><code>public class MyFirebaseMessagingService extends FirebaseMessagingService {
  
  private static final String TAG = MyFirebaseMessagingService.class.getSimpleName();
  
  private NotificationManager mNotificationManager;
  
  @Override
  public void onNewToken(String s) {
      super.onNewToken(s);
      Log.d(TAG, "Refreshed token: " + s);
      sendResistrationToServer(s);
  }
  
  @Override
  public void onMessageReceived(RemoteMessage remoteMessage) {
      if (remoteMessage == null) {
          Log.d(TAG, "Notification message was empty");
          return;
      }
      Log.d(TAG, "From: " + remoteMessage.getFrom());
      Log.d(TAG, "Notification Message Body: " + remoteMessage.getNotification().getBody());
      showNotification(remoteMessage);
  }
  
  
  private void sendResistrationToServer(String s) {
      Preferences.set(Constants.Firebase.FIREBASE_APP_TOKEN, s);
  }
  
  private void showNotification(RemoteMessage remoteMessage) {
  
      //Activity to be open
      Intent i = new Intent(this, NotificationActivity.class);
  
      PendingIntent pendingIntent =
              PendingIntent.getActivity(this, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);
  
      NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
              .setSmallIcon(R.mipmap.ic_launcher)
              .setContentTitle("Titolo")
              .setContentText("testo")
              .setAutoCancel(true)
              .setContentIntent(pendingIntent);
  
      mNotificationManager = (NotificationManager) getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);
      mNotificationManager.notify(0, notificationBuilder.build());
  }
  </code></pre>
  
  <p>}</p>
  
  <p><strong>My Manifest</strong></p>
  
  <pre><code> &lt;application
      android:name=".my.MyApplication"
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:largeHeap="true"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme.NoActionBar"&gt;
      &lt;activity android:name=".my.ui.activity.SplashScreenActivity"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".my.ui.activity.MainActivity"
          android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /&gt;
      &lt;activity
          android:name=".my.ui.activity.ProfileActivity"
          android:label="@string/title_activity_modal_login" /&gt;
      &lt;activity
          android:name=".my.ui.activity.LanguageSettingActivity"
          android:label="@string/title_activity_modal_login" /&gt;
      &lt;activity
          android:name=".my.ui.activity.NotificationActivity"
          android:label="@string/title_activity_modal_login"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;service android:name=".my.base.MyFirebaseMessagingService"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.firebase.MESSAGING_EVENT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>I don't understand if the problem is how I call the activity inside FirebaseService or into the manifest file.</p>