func userNotificationCenter()

in PoC/iOS/Bluetooth Tracing PoC/Sources/Services/NotificationService.swift [110:124]


    func userNotificationCenter(_ center: UNUserNotificationCenter,
                                didReceive response: UNNotificationResponse,
                                withCompletionHandler completionHandler: @escaping () -> Void) {

        switch response.actionIdentifier {
        case Constants.actionRestart:
            NotificationCenter.default.post(name: .RestartBluetooth, object: self)
        case Constants.actionShowRestart:
            self.scheduleActionNotification()
        default:
            break
        }

        completionHandler()
    }