From 63d75040a644b46cff1aad4f7011a48644b2f5cd Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Wed, 13 Oct 2021 10:39:42 +1100 Subject: [PATCH] clean --- Session/Meta/AppDelegate.swift | 1 - .../Sending & Receiving/Notifications/PushNotificationAPI.swift | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Session/Meta/AppDelegate.swift b/Session/Meta/AppDelegate.swift index 18cc4787b..9b2e274f0 100644 --- a/Session/Meta/AppDelegate.swift +++ b/Session/Meta/AppDelegate.swift @@ -146,7 +146,6 @@ extension AppDelegate { BackgroundPoller.poll(completionHandler: { result in if result == .failed { task.setTaskCompleted(success: false) - } else { task.setTaskCompleted(success: true) } diff --git a/SessionMessagingKit/Sending & Receiving/Notifications/PushNotificationAPI.swift b/SessionMessagingKit/Sending & Receiving/Notifications/PushNotificationAPI.swift index c44649c60..8fccb96ec 100644 --- a/SessionMessagingKit/Sending & Receiving/Notifications/PushNotificationAPI.swift +++ b/SessionMessagingKit/Sending & Receiving/Notifications/PushNotificationAPI.swift @@ -5,7 +5,7 @@ import PromiseKit public final class PushNotificationAPI : NSObject { // MARK: Settings - public static let server = "https://dev.apns.getsession.org" + public static let server = "https://live.apns.getsession.org" public static let serverPublicKey = "642a6585919742e5a2d4dc51244964fbcd8bcab2b75612407de58b810740d049" private static let maxRetryCount: UInt = 4 private static let tokenExpirationInterval: TimeInterval = 12 * 60 * 60