marinofaggiana 4 years ago
parent
commit
b43eaa113e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      iOSClient/AppDelegate.m

+ 3 - 2
iOSClient/AppDelegate.m

@@ -545,7 +545,8 @@
 
     [[NCCommunication shared] unsubscribingPushNotificationWithServerUrl:url account:account user:user password:[CCUtility getPassword:account] customUserAgent:nil addCustomHeaders:nil completionHandler:^(NSString *account, NSInteger errorCode, NSString *errorDescription) {
         if (errorCode == 0) {
-            //[[NCCommunication shared] unsubscribingPushProxyWithProxyServerUrl:url deviceIdentifier:deviceIdentifier signature:signature publicKey:publicKey  completionHandler:^(NSInteger errorCode, NSString *errorDescription) {
+            NSString *userAgent = [NSString stringWithFormat:@"%@  (Strict VoIP)", [CCUtility getUserAgent]];
+            [[NCCommunication shared] unsubscribingPushProxyWithProxyServerUrl:url deviceIdentifier:deviceIdentifier signature:signature publicKey:publicKey userAgent:userAgent completionHandler:^(NSInteger errorCode, NSString *errorDescription) {
                 if (errorCode == 0) {
                 
                     NSLog(@"[LOG] Unsubscribed to Push Notification server & proxy successfully.");
@@ -561,7 +562,7 @@
                         [self subscribingNextcloudServerPushNotification:account url:url user:user];
                     }
                 }
-            //}];
+            }];
         }
     }];
 }