sendNotification method

  1. @override
Future<void> sendNotification(
  1. String notId,
  2. String appToken
)
override

Implementation

@override
Future<void> sendNotification(String notId, String appToken) async {
  final payload = notificationRequestToJson(NotificationRequest(
    notificationRequest:
        Notification(appToken: appToken, id: notId, notId: notId),
  ));
  logger.i(payload);
  await _postRequest('$version/notification/', payload);
}