So, I spent some times to think about the implementation of Alarm API. We have to choose some things:
- Do we add alarm for every reminder, whatever the way has been created? Or we add alarm only for reminders created on device?
If we want to add alarm for every reminder we do it in the backend: at every sync we check which reminders have the alarm yet and we activate the misses.
Also, we need to sync the notes in background: if a user creates a note on the web, he wants the alarm rings also if he didn't open the app since a while
- When we want alarms ring? 10 minutes before the deadline? The day before? And if the reminder is set for a day, but without an hour? When has to ring the alarm? At midnight? At noon?
So, I spent some times to think about the implementation of Alarm API. We have to choose some things:
- Do we add alarm for every reminder, whatever the way has been created? Or we add alarm only for reminders created on device?
If we want to add alarm for every reminder we do it in the backend: at every sync we check which reminders have the alarm yet and we activate the misses.
Also, we need to sync the notes in background: if a user creates a note on the web, he wants the alarm rings also if he didn't open the app since a while
- When we want alarms ring? 10 minutes before the deadline? The day before? And if the reminder is set for a day, but without an hour? When has to ring the alarm? At midnight? At noon?