trackNotificationType method
void
trackNotificationType({
- required String notificationId,
- 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');
}
}