How to trigger a function everyday at the same time with SwiftUI?

79 Views Asked by At

I'm building a quote app with SwiftUI. I would like to send a user notification and get a new quote every day at the time that the user picks.

I've tried it with Timer but there is a problem if the user terminates the app. Also tried it with notification but if the user declines the permission, I can't update the quotes and the whole app is useless. I would appreciate it if anybody has an idea how to solve this problem.

0

There are 0 best solutions below