getActiveService static method

Future<String> getActiveService()

@return either hms or fcm or empty result if none of them were available. NOTE: If anything was wrong in initialization, this may never return result

Implementation

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