startForegroundService method

Future<void> startForegroundService()

Implementation

Future<void> startForegroundService() async {
  if (!WebRTC.platformIsAndroid) return;

  await _nativeChannel.invokeMethod("startForeground");
}