Timer update
This commit is contained in:
Binary file not shown.
@@ -177,8 +177,6 @@ extension RecipeTimer {
|
|||||||
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user