diff --git a/LeCountdown/Conductor.swift b/LeCountdown/Conductor.swift index 0ac746e..be0f326 100644 --- a/LeCountdown/Conductor.swift +++ b/LeCountdown/Conductor.swift @@ -139,7 +139,6 @@ class Conductor: ObservableObject { self.removeLiveTimer(id: countdown.stringId) let sound = countdown.someSound - let soundPlayer = try DelaySoundPlayer(timerID: countdown.stringId, sound: sound) FileLogger.log("a) self._delayedSoundPlayers count = \(self._delayedSoundPlayers.count)") @@ -159,6 +158,7 @@ class Conductor: ObservableObject { handler(.success(date)) } catch { + FileLogger.log("start error : \(error.localizedDescription)") Logger.error(error) handler(.failure(error)) } diff --git a/LeCountdown/CountdownScheduler.swift b/LeCountdown/CountdownScheduler.swift index 2631424..0f80630 100644 --- a/LeCountdown/CountdownScheduler.swift +++ b/LeCountdown/CountdownScheduler.swift @@ -39,16 +39,8 @@ class CountdownScheduler { self._createNotification(countdown: countdown, content: content, handler: handler) // content.sound = UNNotificationSound.criticalSoundNamed(UNNotificationSoundName(rawValue: sound), withAudioVolume: 1.0) - content.interruptionLevel = .critical +// content.interruptionLevel = .critical content.relevanceScore = 1.0 - -// let notificationCount = 1 + countdown.repeatCount - - -// for i in 0..