diff --git a/Linphone/LinphoneApp.swift b/Linphone/LinphoneApp.swift index 0b018c617..2082758b3 100644 --- a/Linphone/LinphoneApp.swift +++ b/Linphone/LinphoneApp.swift @@ -29,8 +29,8 @@ class AppDelegate: NSObject, UIApplicationDelegate { Log.info("Received remote push token : \(tokenStr)") CoreContext.shared.doOnCoreQueue { core in Log.warn("Push are disabled for this version, do not forward push token to the core") - //Log.info("Forwarding remote push token to core") - //core.didRegisterForRemotePushWithStringifiedToken(deviceTokenStr: tokenStr + ":remote") + Log.info("Forwarding remote push token to core") + core.didRegisterForRemotePushWithStringifiedToken(deviceTokenStr: tokenStr + ":remote") } } @@ -40,12 +40,11 @@ class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { Log.info("Received background push notification, payload = \(userInfo.description)") - /* let creationToken = (userInfo["customPayload"] as? NSDictionary)?["token"] as? String if let creationToken = creationToken { NotificationCenter.default.post(name: accountTokenNotification, object: nil, userInfo: ["token": creationToken]) } - completionHandler(UIBackgroundFetchResult.newData)*/ + completionHandler(UIBackgroundFetchResult.newData) } func applicationWillTerminate(_ application: UIApplication) {