Answer the question
In order to leave comments, you need to log in
Is it possible to remove a local notification when changing a setting in Settings iOS?
In the application, on the Settings view, there is a switch responsible for turning on / off local notifications at a given time. A similar switch has been moved through Settings.bundle to the system iOS Settings application.
By switching the switch from the Settings screen, we create a local notification or nail it, everything works fine. The problem occurs when the user has changed the setting for sending a notification from the iOS Settings (not through the Notification Center, but from the settings screen of their application).
If the application, after the setting in Settings has been changed, starts before the time indicated in the notification, we can correctly update the settings and remove the notification. If the application did not start after changing the settings in Settings, then the notification will come anyway.
Question: Can I somehow remove the local notification when changing the setting in Settings iOS? (Googling, I suspect not)
PS
Add. question: For push notifications, we can see what type of notifications are allowed by the system through registerForRemoteNotificationTypes . Can we see similar settings for local notifications? (no, according to stackoverflow.com/questions/7779036/detect-notific...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question