I'm currently working on an app blocking app where users can schedule and set a start time and end time to block apps. I've already implemented android_alarm_manager with flutter_foreground_task to start foreground task on a specific time. My problem is that it seems like starting the foreground task needs the app to be opened to actually start the foreground task. Is there a way to start foreground _task without the app being opened?
This feature is not supported. But, it seems that the feature can be implemented by registering options on dart side and calling it from native. I will consider adding this feature.
I'm currently working on an app blocking app where users can schedule and set a start time and end time to block apps. I've already implemented android_alarm_manager with flutter_foreground_task to start foreground task on a specific time. My problem is that it seems like starting the foreground task needs the app to be opened to actually start the foreground task. Is there a way to start foreground _task without the app being opened?