title: Android NotificationListenerService onNotificationPosted fire twice
body: <p>I listen for notifications like WhatsApp Messages.</p>
  
  <p>But every time a notification comes in the NotificationListenerService fire twice.</p>
  
  <p>Does anyone know this problem??</p>
  
  <p>This is a snippet from the AndroidManifest.xml:</p>
  
  <pre><code>&lt;service android:name=".NotifyService"
              android:label="WhatsNotify"
              android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"&gt;
      &lt;intent-filter&gt;
                  &lt;action android:name="android.service.notification.NotificationListenerService"&gt;&lt;/action&gt;
      &lt;/intent-filter&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p>And inside the NotificationListenerService class:</p>
  
  <pre><code>public class NotifyService extends NotificationListenerService {
  
      @Override
      public void onNotificationPosted(StatusBarNotification sbn) {
          Log.i("NotifyService", "got notification");
      }
  }
  </code></pre>
  
  <p><strong>Edit</strong>:
  Properties of both <code>StatusBarNotification</code>s:</p>
  
  <p>First notification:</p>
  
  <p><code>0|com.whatsapp|1|xxxxxxxxxx@s.whatsapp.net|10073</code></p>
  
  <p>Second notification: </p>
  
  <p><code>0|com.whatsapp|1|null|10073</code></p>