title: NotificationListenerService is not working for Hangouts
body: <p>I am trying to read Notifications for IM apps from my application.</p>
  
  <p>I have implemented <code>NotificationListenerService</code> properly. Its giving me notification logs for almost all IM apps (Whatsapp, Line, Hike, Viber, Instagram, Facebook Lite, even Gmail's mails). But for some reason <code>onNotificationPosted</code> is not fired when I receive notification of new message in <strong>Hangouts</strong>.</p>
  
  <p>Here is related code of my Service and Manifest file:</p>
  
  <pre><code>    .
      .
  
      public TrackMyNotificationsService() {
      }
  
      @Override
      public IBinder onBind(Intent intent) {
          // TODO: Return the communication channel to the service.
          IBinder mIBinder = super.onBind(intent);
          Log.i(TAG, "onBind");
          return mIBinder;
      }
  
      @Override
      public void onNotificationPosted(StatusBarNotification sbn) {
          super.onNotificationPosted(sbn);
          if (sbn != null) {
              Bundle extras = sbn.getNotification().extras;
  
              String key = sbn.getKey();
              String appName = getAppName(sbn.getPackageName());
              //Here goes logic for saving and logging based on application name 
              .....
          }
      }
      @Override
      public boolean onUnbind(Intent intent) {
          Log.i(TAG, "onUnBind");
          return super.onUnbind(intent);
      }
  
      @Override
      public void onNotificationRemoved(StatusBarNotification sbn) {
          super.onNotificationRemoved(sbn);
      }
  
      public String getAppName(String packageName){
          String appName = packageName;
          try{
              ApplicationInfo applicationInfo = getPackageManager().getApplicationInfo(packageName, PackageManager.GET_META_DATA);
              appName = (String) getPackageManager().getApplicationLabel(applicationInfo);
          }catch(Exception e){
              e.printStackTrace();
          }
          return appName;
      }
  </code></pre>
  
  <p><strong>Manifest:</strong></p>
  
  <pre><code>    &lt;service
          android:name=".TrackMyNotificationsService"
          android:enabled="true"
          android:exported="true"
          android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.service.notification.NotificationListenerService" /&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  </code></pre>
  
  <p>I tried rebooting device. Notifications are ON for Hangouts. (I get them in device), but <code>onNotificationPosted</code> is not getting called. Any help?</p>