Disable background notification process for now (will be used later for account creation token processing)

This commit is contained in:
QuentinArguillere 2024-03-07 12:01:04 +01:00
parent 533bc26d6d
commit 8d6f096582

View file

@ -39,12 +39,12 @@ 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) {