Commit beca9e54 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Add instead of replace permissions on iOS

parent ecb12b55
Loading
Loading
Loading
Loading
+4 −1
Changes for src/ios/UIApplication+APPLocalNotification.m: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -62,7 +62,10 @@
        UIUserNotificationType types;
        UIUserNotificationSettings *settings;

        types = UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound;
        settings = [[UIApplication sharedApplication]
                    currentUserNotificationSettings];

        types = settings.types|UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound;

        settings = [UIUserNotificationSettings settingsForTypes:types
                                                     categories:nil];