enableNotifications method

Future<bool> enableNotifications (
  1. String fcmToken
)

Implementation

static Future<bool> enableNotifications(String fcmToken) async {
  assert(fcmToken != null && fcmToken.isNotEmpty,
      "fcmToken $_cannotBeNullOrEmpty");

  final bool result = await _channel.invokeMethod(
    _methodEnableNotifications,
    <String, dynamic>{"fcmToken": fcmToken},
  );
  return result;
}