Enable core push notifications by default

This commit is contained in:
Benoit Martins 2025-10-09 12:05:00 +02:00
parent 0a06644473
commit aae7c290be

View file

@ -146,8 +146,7 @@ class CoreContext: ObservableObject {
self.mCore = try? Factory.Instance.createSharedCoreWithConfig(config: Config.get(), systemContext: Unmanaged.passUnretained(coreQueue).toOpaque(), appGroupId: Config.appGroupName, mainCore: true) self.mCore = try? Factory.Instance.createSharedCoreWithConfig(config: Config.get(), systemContext: Unmanaged.passUnretained(coreQueue).toOpaque(), appGroupId: Config.appGroupName, mainCore: true)
self.mCore.callkitEnabled = true self.mCore.callkitEnabled = true
self.mCore.pushNotificationEnabled = true
self.mCore.pushNotificationEnabled = self.mCore.defaultAccount?.params?.pushNotificationAllowed ?? false
let appName = Bundle.main.infoDictionary?["CFBundleName"] as? String let appName = Bundle.main.infoDictionary?["CFBundleName"] as? String
let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String