Closed
Description
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"/>