I have a simple Android app I have been working on for a few weeks.
The app is a diary to which you can set tasks you have to complete.
I need the app to have a functionality in which it will save an object to room at 12:00 am while the app is either open, open in the background, or completely closed.
My question to you is what do you think would be the best and most efficient approach for building this feature?
Thank you