title: Application not launching or calling onNewIntent when notification clicked
body: <p>I'm successfully sending notifications using GCM, but when I click on them, nothing happens.  Here is the code in my listener, I can verify that it is executing, but when I put breakpoints on the <code>onCreate</code> and <code>onNewIntent</code> methods in my <code>HomeActivity</code> they are never hit.  In addition, if that application is not running, I still receive the notification, but the application is not launched.  I have tried suggestions from <a href="https://stackoverflow.com/a/14609666/567547">here</a> and <a href="https://stackoverflow.com/a/27431086/567547">here</a> as well as several different combinations of Intent flags.  Am I missing something?  Please ask if you need me to post more code.</p>
  
  <p>Code from my <code>GcmListenerService</code></p>
  
  <pre><code>    notificationBuilder = new NotificationCompat.Builder(this)
              .setContentTitle(getString(appNameID))
              .setContentText(payload)
              .setSmallIcon(iconID)
              .setLargeIcon(BitmapFactory.decodeResource(getResources(), bigIconID));
  
      Intent resultIntent = new Intent(this, HomeActivity.class);
      resultIntent.putExtra(HomeActivity.NOTIFICATION_ID_KEY, notificationID);
      resultIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
      resultIntent.setAction(HomeActivity.NOTIFICATION_ACTION);
      PendingIntent resultPendingIntent = PendingIntent.getActivity(this, 0, resultIntent, PendingIntent.FLAG_UPDATE_CURRENT);
      notificationBuilder.setContentIntent(resultPendingIntent);
  
      // Set Vibrate, Sound and Light
      int defaults = 0;
      defaults = defaults | Notification.DEFAULT_LIGHTS;
      defaults = defaults | Notification.DEFAULT_VIBRATE;
      defaults = defaults | Notification.DEFAULT_SOUND;
      notificationBuilder.setDefaults(defaults);
      notificationBuilder.setAutoCancel(true);
  
  
      // Post a notification
      notificationManager.notify(NOTIFY_ID, notificationBuilder.build());
  </code></pre>