I want to add a mute button to my app that when the user clicks it, he chooses a duration of the mute and while the mute is enabled the user won't get notifications from my app.
I thought NSTimer
is a good option, but how can I make a timer with it? And how can I set that the timer
will run in the background aswell?
Note: I'm using location monitoring in the background.