getFCMToken static method

Future<String> getFCMToken()

Implementation

static Future<String> getFCMToken() async {
  // Android only
  if (kIsWeb || !Platform.isAndroid) {
    return '';
  }

  // Query for underlying FCM token
  String result = (await _channel.invokeMethod<String>('getFCMToken'))!;

  // Return result
  return result;
}