瀏覽代碼

dev push notification

Marino Faggiana 6 年之前
父節點
當前提交
55cb5e0580
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      iOSClient/AppDelegate.m

+ 3 - 0
iOSClient/AppDelegate.m

@@ -430,6 +430,9 @@
 
 - (void)unsubscribingNextcloudServerPushNotification
 {
+    if (self.pnDeviceIdentifier == nil || self.pnDeviceIdentifierSignature == nil || self.pnPublicKey == nil)
+        return;
+    
     OCnetworking *ocNetworking = [[OCnetworking alloc] initWithDelegate:nil metadataNet:nil withUser:self.activeUser withUserID:self.activeUserID withPassword:self.activePassword withUrl:self.activeUrl];
 
     [ocNetworking unsubscribingPushNotificationServer:self.activeUrl deviceIdentifier:self.pnDeviceIdentifier deviceIdentifierSignature:self.pnDeviceIdentifierSignature publicKey:self.pnPublicKey success:^{