I have an app that I have created where I want the app to run a single method when the the time reaches 00:00 (basically the next day).
For context, my app saves a csv file for each day. I’ve research around on how to make apps run in the background and foreground services was the the one that I found, but I feel like it is too overkill as my app will only run one method, once, each day (the method in question is the one that creates the csv file).
Is foreground services my only option or are there other ways to do this?