Skip to content

Missing Default Notification Channel metadata in AndroidManifest. Default value will be used  #343

Closed
@kroikie

Description

@kroikie

i have issue in notification when i open app and receiving notification from firebase its working
but when i out of app and receiving notification from firebase i get this issue

Missing Default Notification Channel metadata in AndroidManifest. Default value will be used

my code

Future _showNotificationWithDefaultSound(String t, String b,String id) async {

    var androidPlatformChannelSpecifics = new AndroidNotificationDetails(
        'your channel id', 'your channel name', 'your channel description',
        importance: Importance.Max, priority: Priority.High);
    var iOSPlatformChannelSpecifics = new IOSNotificationDetails();
    var platformChannelSpecifics = new NotificationDetails(
        androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics);
    await flutterLocalNotificationsPlugin.show(
     int_notification,
      t,
      b,
      platformChannelSpecifics,
      payload: 'Default_Sound',
    );
  }

my Manifiest.xml

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions