1

Is there an action inside of intent-filter of a broadcast reciever which can catch device incoming notifications (not only push but all notifications)?

for example:

 <intent-filter>
        <action android:name="android.intent.action.PHONE_STATE" />

for reading phone state, is there one for when a notification have arrived?

Michael A
  • 5,770
  • 16
  • 75
  • 127
  • 1
    I think [this](http://stackoverflow.com/questions/9367196/detect-a-new-android-notification) is what you need, Good luck – Strider Apr 30 '15 at 07:55
  • 1
    You need to know what type of notification you want to listen. There are tons of brocasts thats happening. – Manish Apr 30 '15 at 07:55
  • @Strider i actually know of the AccessibilityService but trying a way to intercept notification before it displayed to the user and not after – Michael A Apr 30 '15 at 08:09
  • @MichaelA dunno for sure, but I don't think that's possible... – Strider Apr 30 '15 at 08:16

1 Answers1

0

If you are using GCM:

<intent-filter>
      <action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
Tim Kranen
  • 4,202
  • 4
  • 26
  • 49