Need to run the app in an android device after killing it in a flutter. I'm using background_fetch, it works fine when app is live. but it won't run after killing the app.
BackgroundFetch.configure(BackgroundFetchConfig(
minimumFetchInterval: 15,
forceAlarmManager: false,
stopOnTerminate: false,
startOnBoot: true,
enableHeadless: true,
requiresBatteryNotLow: false,
requiresCharging: false,
requiresStorageNotLow: false,
requiresDeviceIdle: false,
requiredNetworkType: NetworkType.NONE,
), _onBackgroundFetch).then((int status) {
print('[BackgroundFetch] configure success: $status');
setState(() {
_status = status;
});
}).catchError((e) {
print('[BackgroundFetch] configure ERROR: $e');
setState(() {
_status = e;
});
});