diff --git a/lib/data/model/hive/machine.dart b/lib/data/model/hive/machine.dart index 9c80cf57..2a3cca32 100644 --- a/lib/data/model/hive/machine.dart +++ b/lib/data/model/hive/machine.dart @@ -45,6 +45,8 @@ class Machine extends HiveObject { String get statusUpdatedChannelKey => '$uuid-statusUpdates'; + String get m117ChannelKey => '$uuid-m117'; + String get printProgressChannelKey => '$uuid-progressUpdates'; Machine({ diff --git a/lib/service/notification_service.dart b/lib/service/notification_service.dart index 6fab1ff9..fb27b4a1 100644 --- a/lib/service/notification_service.dart +++ b/lib/service/notification_service.dart @@ -327,6 +327,13 @@ class NotificationService { channelGroupKey: machine.uuid, importance: NotificationImportance.Max, defaultColor: brownish.shade500), + NotificationChannel( + channelKey: machine.m117ChannelKey, + channelName: 'User M117 Notifications - ${machine.name}', + channelDescription: 'Notifications issued by M117 with prefix "\$MR\$:".', + channelGroupKey: machine.uuid, + importance: NotificationImportance.Max, + defaultColor: brownish.shade500), NotificationChannel( channelKey: machine.printProgressChannelKey, channelName: 'Print Progress Updates - ${machine.name}',