removeUserFCMToken method

Future<void> removeUserFCMToken(
  1. String userId,
  2. String fcmToken
)

Implementation

Future<void> removeUserFCMToken(String userId, String fcmToken) async {
  try {
    await _functions
        .httpsCallable('callables-removeFCMToken')
        .call({'userId': userId, 'fcmToken': fcmToken});
  } catch (err) {
    if (err is UserMessagingDataServiceException) {
      rethrow;
    }
    throw UserMessagingDataServiceException(message: err.toString());
  }
}