From 640cb70ebf7dcec76575ea4cd1adf307717f4a5d Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Thu, 10 Feb 2022 14:59:31 +0100 Subject: [PATCH] fix duplicate push authorization requests on install --- Classes/LinphoneAppDelegate.m | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index ad038b276..a1147c08a 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -325,12 +325,6 @@ if (bgStartId != UIBackgroundTaskInvalid) [[UIApplication sharedApplication] endBackgroundTask:bgStartId]; - //Enable all notification type. VoIP Notifications don't present a UI but we will use this to show local nofications later - UIUserNotificationSettings *notificationSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert| UIUserNotificationTypeBadge | UIUserNotificationTypeSound categories:nil]; - - //register the notification settings - [application registerUserNotificationSettings:notificationSettings]; - //output what state the app is in. This will be used to see when the app is started in the background LOGI(@"app launched with state : %li", (long)application.applicationState); LOGI(@"FINISH LAUNCHING WITH OPTION : %@", launchOptions.description);