Is there any method to temporarily disable all local notifications created by an iPhone app? I need to re enable them all with respect to a condition. my requirement is if the user turned off the notification button on my app , then no more notifications is shown.If he turned it on then all notifications should be shown. Any idea?
Is there any method to temporarily disable all local notifications created by an iPhone
Share
You can get all scheduled notifications and save them in shared preferences for example.
Then cancel all notifications:
If user activate notifications again, you can reschedule them again.