Commit beca9e54 by Sebastián Katzer

Add instead of replace permissions on iOS

parent ecb12b55
...@@ -62,7 +62,10 @@ ...@@ -62,7 +62,10 @@
UIUserNotificationType types; UIUserNotificationType types;
UIUserNotificationSettings *settings; UIUserNotificationSettings *settings;
types = UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound; settings = [[UIApplication sharedApplication]
currentUserNotificationSettings];
types = settings.types|UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound;
settings = [UIUserNotificationSettings settingsForTypes:types settings = [UIUserNotificationSettings settingsForTypes:types
categories:nil]; categories:nil];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment