ensureForegroundService method

Future<void> ensureForegroundService()

Ensures foreground service is running to support receiving microphone input when application is in background.

Does nothing on non-Android operating systems.

Implementation

Future<void> ensureForegroundService() async {
  Log.debug('ensureForegroundService()', '$runtimeType');

  // TODO: Google Play doesn't allow applications to have foreground services
  //       without declarations that require video URLs demonstrating
  //       __working__ foreground service features usage.
  // await WebUtils.setupForegroundService();
}