android_long_task icon indicating copy to clipboard operation
android_long_task copied to clipboard

Add autostart?

Open IanWorthington opened this issue 4 years ago • 1 comments

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?

IanWorthington avatar Apr 01 '21 21:04 IanWorthington

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

easazade avatar Apr 02 '21 16:04 easazade