FirebaseInstanceIdReceiver

public final class FirebaseInstanceIdReceiver extends WakefulBroadcastReceiver

WakefulBroadcastReceiver that receives FirebaseInstanceId and FirebaseMessaging events and delivers them to the application-specific FirebaseInstanceIdService subclass.

This receiver is automatically added to your application's manifest file via manifest merge. If necessary it can be manually declared via:

 <receiver
     android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
     android:exported="true"
     android:permission="com.google.android.c2dm.permission.SEND" >
     <intent-filter>
         <action android:name="com.google.android.c2dm.intent.RECEIVE" />
         <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
         <category android:name="YOUR_PACKAGE_NAME" />
     </intent-filter>
 </receiver>

The com.google.android.c2dm.permission.SEND permission is held by Google Play services. This prevents other apps from invoking the broadcast receiver.

Public Constructor Summary

Public Method Summary

void
onReceive(Context context, Intent intent)

Inherited Method Summary

Public Constructors

public FirebaseInstanceIdReceiver ()

Public Methods

public void onReceive (Context context, Intent intent)

Send feedback about...

Need help? Visit our support page.