I am working on an app, that needs to run some code every night. It basically calls an api and checks for updates, and acts accordingly on the response.
I have no issue writing the code, and it works perfectly when called manually with the app in the foreground, but I need the app to do this automatically every night.
Can someone please point me in the right direction? Background services only run for a few minutes on iOS, so I can not rely on those.