Browse Source

dev push notification

Marino Faggiana 6 years ago
parent
commit
55cb5e0580
1 changed files with 3 additions and 0 deletions
  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:^{