INNER CODE UNIT · Swift

AppDelegate

JetBrains/kotlinconf-app · app/iosApp/iosApp/iOSApp.swift:17

class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
    // Makes sure that any notifications requested while the app in the foreground are shown
    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)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…