1

I am using version 6.0.16 of the FCM and it is marking the following error Default notification channel metadata is missing in AndroidManifest. Here is part of my Androidmanifest.

<intent-filter>
    <action android:name="FLUTTER_NOTIFICATION_CLICK" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Andres Cuello
  • 99
  • 2
  • 10
  • 2
    Does this answer your question? [Missing default Notification Channel metadata in AndroidManifest in Flutter](https://stackoverflow.com/questions/56428612/missing-default-notification-channel-metadata-in-androidmanifest-in-flutter) – Claudio Redi Jul 03 '20 at 21:18

1 Answers1

1

You need to add the following metadata element in your AndroidManifest.xml within the application component:

<meta-data
    android:name="com.google.firebase.messaging.default_notification_channel_id"
    android:value="@string/default_notification_channel_id"/>

From Android 8.0 (API level 26) and higher, notification channels are supported and recommended. FCM provides a default notification channel with basic settings. If you prefer to create and use your own default channel, set default_notification_channel_id to the ID of your notification channel object as shown; FCM will use this value whenever incoming messages do not explicitly set a notification channel. To learn more, see Manage notification channels.

MαπμQμαπkγVπ.0
  • 5,887
  • 1
  • 27
  • 65