getFcmToken static method

Future<String> getFcmToken()

@return Token of Firebase cloud messaging used by Pushe and empty if anything was wrong or active service wasn't FCM

Implementation

static Future<String> getFcmToken() async {
  if(!Platform.isAndroid) return "";
  return await _channel.invokeMethod("Pushe.getFcmToken") ?? "";
}