My app notifies (using UILocalNotification
) the user every time he approaches one of the stores of my client, even in the background.
I have a mute button that when the user clicks on, an actionSheet pops and asks the him for how long he would like to mute the app (5h, 24h, 1 week or 1 month).
When the user chooses one of the options, I want the app to stop sending notifications until this time will pass.
What is the best way to do this?
I'll really appreciate a code example.
Thanks!