Skip to content

Add autostart? #1

@IanWorthington

Description

@IanWorthington

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions