updateFcmToken static method

Future<void> updateFcmToken({
  1. required String firebaseToken,
  2. required dynamic flyCallBack(
    1. FlyResponse response
    ),
})

Updates the Firebase Cloud Messaging (FCM) token for the Mirrorfly SDK.

This method sends the provided firebaseToken to the Mirrorfly platform to update the FCM token used for push notifications.

The firebaseToken parameter is the FCM token obtained from Firebase Cloud Messaging.

The flyCallBack parameter is a function that will be called upon completion of the operation. It receives a FlyResponse object as a parameter, which contains information about the success or failure of the operation.

Implementation

static Future<void> updateFcmToken(
    {required String firebaseToken,
    required Function(FlyResponse response) flyCallBack}) {
  return FlyChatFlutterPlatform.instance
      .updateFcmToken(firebaseToken, flyCallBack);
}