With FCM, "com.google.android.gms.gcm.GcmReceiver" is added automatically.
The following can be removed from the cookbook app's manifest:
<receiver
|
android:name="com.google.android.gms.gcm.GcmReceiver"
|
android:exported="true"
|
android:permission="com.google.android.c2dm.permission.SEND" >
|
<intent-filter>
|
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
|
<category android:name="com.example.gcm" />
|
</intent-filter>
|
</receiver>
|
Details: https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_the_receiver_from_the_app_manifest
|