How can I use UNNotificationSettings
to get the notification type in iOS 10?
On previous iOS, I would use this:
UIUserNotificationSettings *notificationSettings = [[UIApplication sharedApplication] currentUserNotificationSettings];
Bool active = notificationSettings.types == UIUserNotificationTypeNone ? NO: YES;
UNNotificationSettings
class? – Toor