easazade / android_long_task

android long task is a flutter plugin to run dart code in an android foreground service with simplicity
Apache License 2.0
16 stars 6 forks source link

Add autostart? #1

Open IanWorthington opened 3 years ago

IanWorthington commented 3 years ago

I'm looking at your project to see if it can replace the unreliable WorkManager/AlarmManager for me.

One of the things I need is that my foreground service will be started automatically on a device reboot, or if the foreground service is stopped for any reason other than explicit user command.

I'm afraid I have have no idea where to start with these. Roberto has some suggestions in a similar project he wrote up at https://robertohuertas.com/2019/06/29/android_foreground_services/ (at "Bonus" and "Bonus 2" but his code seems totally different to your own.

How might I go about adding that functionally to your project?

easazade commented 3 years ago

this seems like something we can work on to add to this plugin. by the way feel free to make a pull request if you have any knowledge of native android