Timer update

This commit is contained in:
VincentMeilinger
2024-01-16 18:44:58 +01:00
parent c0314abbf7
commit 59734fb0cc
2 changed files with 1 additions and 3 deletions

View File

@@ -176,9 +176,7 @@ extension RecipeTimer {
audioPlayer?.stop() audioPlayer?.stop()
try? AVAudioSession.sharedInstance().setActive(false) try? AVAudioSession.sharedInstance().setActive(false)
} }
// ===================================== ALTERNATIVE
func requestNotificationPermissions() { func requestNotificationPermissions() {
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { granted, error in UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { granted, error in
if granted { if granted {