improvement

main_design2.0
Sikander Saleem 8 months ago
parent 96cb264bf1
commit 2734d17421

@ -104,8 +104,11 @@ class FirebaseNotificationManger {
});
FirebaseMessaging.onMessage.listen((RemoteMessage message) {
NotificationManger.showNotification(
title: message.notification.title, subtext: message.notification.body, hashcode: int.tryParse("1234" ?? "") ?? 1, payload: json.encode(message.data), context: context);
if (Platform.isAndroid) {
NotificationManger.showNotification(
title: message.notification.title, subtext: message.notification.body, hashcode: int.tryParse("1234" ?? "") ?? 1, payload: json.encode(message.data), context: context);
}
return;
});
FirebaseMessaging.onMessageOpenedApp.listen((RemoteMessage message) {

Loading…
Cancel
Save