setContinueRunningAfterAppKilled static method
- bool shouldContinueRunning
only works with v2 Android embedding (Flutter 1.12.x+) 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
Implementation
static Future<void> setContinueRunningAfterAppKilled(
bool shouldContinueRunning) async {
await _invokeMainChannel(
"setContinueRunningAfterAppKilled", <dynamic>[shouldContinueRunning]);
}