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

This commit is contained in:
Evgeny Poberezkin authored and GitHub committed 2022-08-03 17:39:01 +01:00
1 parent c74a4fcbca
commit a5972c7de1
1 file changed
+1
@@ -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: