title: How to restart flutter app when it's killed by the OS or User?
body: <p>I have a Flutter app that I'm running a background service on and it works fine even if the user swipes it away. I see that there're a lot of guides targeting native android implementations of this issue but none for Flutter. I'm using <a href="https://pub.dev/packages/flutter_background_service" rel="nofollow noreferrer">flutter_background_service</a> and it works just fine when the app is in the background but not when it is killed. The app needs to be running all the time to listen to accelerometer events and I've tried a lot of packages like <a href="https://pub.dev/packages/workmanager" rel="nofollow noreferrer">workmanager</a> and <a href="https://pub.dev/packages/flutter_foreground_task" rel="nofollow noreferrer">flutter_foreground_task</a> but they don't work as I'd like. Workmanager can only run every 15 min but that's too long of a duration and foreground_task although it claims it prevents the app from closing, it doesn't actually do that.</p>
  <p>I have no Kotlin experience so using Method channels is not viable at the moment for me,I can copy-paste code though :) and I know some Java. Are there any packages that I'm not aware of that can help me to always listen in the background for events and launch or bring the app to the foreground when I want it to?</p>