setContinueRunningAfterAppKilled static method

Future<void> setContinueRunningAfterAppKilled(
  1. bool shouldContinueRunning
)

Sets whether the foreground service should continue running after the app is killed, for instance when it's swiped off of the recent apps list. Default behavior = true = keep service running after app killed. only works with v2 Android embedding (Flutter 1.12.x+)

Implementation

static Future<void> setContinueRunningAfterAppKilled(
    bool shouldContinueRunning) async {
  await _invokeMainChannel(
      "setContinueRunningAfterAppKilled", <dynamic>[shouldContinueRunning]);
}