Lachtan
Lachtan

Reputation: 5172

How to observe that system alert disappeared

I'd like to in my app ask user to allow local notifications (I have switch for that purpose). When user interact with switch, I call standard registerUserNot.. But if user don't allow that, I'd like to return switch to off position. Any ideas? Thank you

Upvotes: 0

Views: 44

Answers (1)

Mundi
Mundi

Reputation: 80271

You can catch the response in the app delegate call back:

application:didRegisterUserNotificationSettings:

and react accordingly.

Upvotes: 1

Related Questions