postTokenToApi static method

Future<void> postTokenToApi(
  1. String uniqueId
)

Implementation

static Future<void> postTokenToApi(String uniqueId) async {
  await FirebaseMessaging.instance.getToken().then((token) async {
    await NotificationHandler.updateFirebaseToken(
        token ?? '', uniqueId, fcmServerKey);
  });
}