registerForDefaultNotifications method

Future<void> registerForDefaultNotifications()

Registers for all default notification types.

This registers for:

  • Scanner status changes
  • Profile switch events
  • Configuration update events
  • Workflow status changes

This is typically called after configuring a profile.

Implementation

Future<void> registerForDefaultNotifications() async {
  const List<String> notificationTypes = <String>[
    DataWedgeNotificationType.scannerStatus,
    DataWedgeNotificationType.profileSwitch,
    DataWedgeNotificationType.configurationUpdate,
    DataWedgeNotificationType.workflowStatus,
  ];

  for (final String notificationType in notificationTypes) {
    await registerForNotification(notificationType);
  }
}