Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
Benoit Martins 2024-04-22 17:02:37 +02:00
commit deeef8507c

View file

@ -27,9 +27,10 @@ class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
let tokenStr = deviceToken.map { String(format: "%02.2hhx", $0) }.joined()
Log.info("Received remote push token : \(tokenStr)")
CoreContext.shared.doOnCoreQueue { core in
Log.info("Forwarding remote push token to core")
core.didRegisterForRemotePushWithStringifiedToken(deviceTokenStr: tokenStr + ":remote")
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")
}
}