简体   繁体   中英

Broadcast receiver which listen to incoming notifications

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?

If you are using GCM:

<intent-filter>
      <action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM