|
|
@ -60,10 +60,9 @@ Future<void> pushHelper(
|
|
|
|
l10n.incomingMessages,
|
|
|
|
l10n.incomingMessages,
|
|
|
|
number: notification.counts?.unread,
|
|
|
|
number: notification.counts?.unread,
|
|
|
|
ticker: l10n.unreadChats(notification.counts?.unread ?? 1),
|
|
|
|
ticker: l10n.unreadChats(notification.counts?.unread ?? 1),
|
|
|
|
importance: Importance.max,
|
|
|
|
importance: Importance.high,
|
|
|
|
priority: Priority.max,
|
|
|
|
priority: Priority.max,
|
|
|
|
shortcutId: notification.roomId,
|
|
|
|
shortcutId: notification.roomId,
|
|
|
|
fullScreenIntent: true, // To show notification popup
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -272,10 +271,9 @@ Future<void> _tryPushHelper(
|
|
|
|
messages: [newMessage],
|
|
|
|
messages: [newMessage],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
ticker: l10n.unreadChats(notification.counts?.unread ?? 1),
|
|
|
|
ticker: l10n.unreadChats(notification.counts?.unread ?? 1),
|
|
|
|
importance: Importance.max,
|
|
|
|
importance: Importance.high,
|
|
|
|
priority: Priority.max,
|
|
|
|
priority: Priority.max,
|
|
|
|
groupKey: notificationGroupId,
|
|
|
|
groupKey: notificationGroupId,
|
|
|
|
fullScreenIntent: true, // To show notification popup
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
const iOSPlatformChannelSpecifics = DarwinNotificationDetails();
|
|
|
|
const iOSPlatformChannelSpecifics = DarwinNotificationDetails();
|
|
|
|
final platformChannelSpecifics = NotificationDetails(
|
|
|
|
final platformChannelSpecifics = NotificationDetails(
|
|
|
|