evilthreads669966/BootLaces

Starting Service in BootReceiver

Closed this issue · 1 comments

  • need to check whether there is persistent work scheduled before starting the service in BootReceiver
    • after adding periodic work feature it gives the BootReceiver more responsibility
      • The BootReceiver component may be enabled without the need for the work service to be started.
      • Whenever an alarm is triggered it will broadcast to the same receiver and it will make a work request which starts the service when needed
    • This will prevent the service from being started everytime the phone reboots in the event that we have periodic work and not persistent work
  • this is more of a optimization than a bug

prefer to leave this how it is right now