ios: register group defaults to correctly read network settings in NSE (#882)

This commit is contained in:
Evgeny Poberezkin
2022-08-03 17:39:01 +01:00
committed by GitHub
parent c74a4fcbca
commit a5972c7de1

View File

@@ -67,6 +67,7 @@ class NotificationService: UNNotificationServiceExtension {
ntfBadgeCountGroupDefault.set(badgeCount)
setBestAttemptNtf(request.content.mutableCopy() as? UNMutableNotificationContent)
self.contentHandler = contentHandler
registerGroupDefaults()
let appState = appStateGroupDefault.get()
switch appState {
case .suspended: