pilot51 / voicenotify

Android app that speaks notifications
https://voicenotify.app
Apache License 2.0
144 stars 55 forks source link

Option to disable at boot #105

Open pilot51 opened 11 months ago

pilot51 commented 11 months ago

Received via email:

let me suggest to put an option to avoid the start at boot.

The simplest way do this for both development and user experience would be to start the service suspended.

However, if the service is restarted for any reason other than a reboot, it may unexpectedly become suspended.

A couple ways to prevent that:

  1. Store the last start time and suspend if that time is before the boot time.
  2. Suspend if the current time at start is within a certain number of seconds of the boot time.