trackNotificationType method

void trackNotificationType({
  1. required String notificationId,
  2. required NotificationActivityType activityType,
})

Implementation

void trackNotificationType({
  required String notificationId,
  required NotificationActivityType activityType,
}) async {
  final user = sdkDataPersistenceService.currentUser();
  if (user != null) {
    final request = TrackNotificationActivityRequest(
      notificationId: notificationId,
      activityType: activityType,
    );
    await network.trackNotificationActivities(request: request);
  } else {
    throw const NoUserFoundException(
        'No User founded please call createUser First');
  }
}