Closed Junama closed 2 years ago
await FCMConfig.instance.init( defaultAndroidChannel: AndroidNotificationChannel( 'General', 'Fcm config', importance: Importance.max, playSound: true, ledColor: Colors.green, enableLights: true, sound: RawResourceAndroidNotificationSound('notification'),
), onBackgroundMessage:_firebaseMessagingBackgroundHandler, alert: true, sound: true, //provisional: true,
);
insure that the sound exist or remove this line sound: RawResourceAndroidNotificationSound('notification')
sound: RawResourceAndroidNotificationSound('notification')
await FCMConfig.instance.init(
defaultAndroidChannel: AndroidNotificationChannel( 'General', 'Fcm config', importance: Importance.max, playSound: true, ledColor: Colors.green, enableLights: true, sound: RawResourceAndroidNotificationSound('notification'),
);