updateFcmToken method

  1. @override
Future<bool?> updateFcmToken(
  1. String firebasetoken
)
override

Implementation

@override
Future<bool?> updateFcmToken(String firebasetoken) async {
  bool? res;
  try {
    res = await mirrorFlyMethodChannel.invokeMethod<bool>('updateFcmToken', {"token": firebasetoken});
    return res;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}