Disable remote push

This commit is contained in:
QuentinArguillere 2024-04-22 16:53:45 +02:00
parent 6dfc870624
commit e6e1087d85

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")
}
}