Skip to content

Commit 84433fd

Browse files
committed
NSE: add note about architecture flaw
1 parent 57e8f47 commit 84433fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

notification-extension/ITBNotificationServiceExtension.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ import UserNotifications
109109
// IMPORTANT: need to add this to the documentation
110110
bestAttemptContent?.categoryIdentifier = id
111111

112-
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
112+
// for some reason, the check needs to be put into this dispatch
113+
// to function properly for rich pushes with buttons but no image
114+
DispatchQueue.main.asyncAfter(deadline: .now() + 0.01) {
113115
self.getCategoryIdFinished = true
114116
}
115117
}

0 commit comments

Comments
 (0)