INNER CODE UNIT · Swift
userNotificationCenter
JetBrains/kotlinconf-app · app/iosApp/iosApp/iOSApp.swift:19
func userNotificationCenter(
_ center: UNUserNotificationCenter,
willPresent notification: UNNotification,
withCompletionHandler completionHandler:
@escaping (UNNotificationPresentationOptions) -> Void
) {
completionHandler([.banner, .sound, .badge])
}
// Called when notifications are clicked, whether local or remote
func userNotificationCenter(
_ center: UNUserNotificationCenter,
didReceive response: UNNotificationResponse,
withCompletionHandler completionHandler: @escaping () -> Void
) {
IOSNotificationsKt.handleNotificationResponse(response: response)
completionHandler()
}